Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001546/0.001546, allocations: 215.8 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.458/1.458, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2149/0.2149, allocations: 44.93 MB / 358.8 MB, free: 6.059 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002259/0.002259, allocations: 63.91 kB / 0.493 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2915, allocations: 65.48 MB / 0.557 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001737/0.2933, allocations: 0.5137 MB / 0.5575 GB, free: 6.961 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008842/0.2941, allocations: 378.7 kB / 0.5578 GB, free: 6.672 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.999e-05/0.2942, allocations: 4 kB / 0.5578 GB, free: 6.668 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.846e-05/0.2942, allocations: 0 / 0.5578 GB, free: 6.668 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.291e-05/0.2942, allocations: 7.938 kB / 0.5578 GB, free: 6.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005453/0.2948, allocations: 139.4 kB / 0.558 GB, free: 6.527 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.004e-05/0.2948, allocations: 31.84 kB / 0.558 GB, free: 6.496 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.453e-05/0.2949, allocations: 0 / 0.558 GB, free: 6.496 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.539e-05/0.2949, allocations: 12 kB / 0.558 GB, free: 6.484 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.971e-05/0.295, allocations: 19.84 kB / 0.558 GB, free: 6.465 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.362e-05/0.295, allocations: 4 kB / 0.558 GB, free: 6.461 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002799/0.2953, allocations: 135.8 kB / 0.5582 GB, free: 6.328 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.29e-05/0.2953, allocations: 4 kB / 0.5582 GB, free: 6.324 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.936e-05/0.2953, allocations: 15.92 kB / 0.5582 GB, free: 6.309 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002285/0.2956, allocations: 125.5 kB / 0.5583 GB, free: 6.188 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.2956, allocations: 4 kB / 0.5583 GB, free: 6.184 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.2956, allocations: 0 / 0.5583 GB, free: 6.184 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.2956, allocations: 0 / 0.5583 GB, free: 6.184 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005222/0.2961, allocations: 293.9 kB / 0.5586 GB, free: 5.867 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.2962, allocations: 12.03 kB / 0.5586 GB, free: 5.855 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.284e-05/0.2962, allocations: 34.75 kB / 0.5586 GB, free: 5.812 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.656e-05/0.2962, allocations: 0.9375 kB / 0.5586 GB, free: 5.812 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.2963, allocations: 114.5 kB / 0.5587 GB, free: 5.676 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.2964, allocations: 8.359 kB / 0.5587 GB, free: 5.668 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.649e-05/0.2964, allocations: 4.375 kB / 0.5588 GB, free: 5.664 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001478/0.2965, allocations: 57.94 kB / 0.5588 GB, free: 5.602 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.2966, allocations: 4 kB / 0.5588 GB, free: 5.598 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.2966, allocations: 4 kB / 0.5588 GB, free: 5.594 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.2966, allocations: 0 / 0.5588 GB, free: 5.594 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.525e-05/0.2966, allocations: 27.97 kB / 0.5588 GB, free: 5.566 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001881/0.2968, allocations: 136.7 kB / 0.559 GB, free: 5.391 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002378/0.2971, allocations: 58.58 kB / 0.559 GB, free: 5.324 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.229e-05/0.2971, allocations: 28.84 kB / 0.5591 GB, free: 5.293 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002394/0.2974, allocations: 31.91 kB / 0.5591 GB, free: 5.262 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.406e-05/0.2974, allocations: 38.5 kB / 0.5591 GB, free: 5.215 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.152e-06/0.2974, allocations: 0 / 0.5591 GB, free: 5.215 MB / 398.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.1409/0.4383, allocations: 6.386 MB / 0.5654 GB, free: 14.79 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.4383, allocations: 55.41 kB / 0.5654 GB, free: 14.72 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.624e-05/0.4384, allocations: 102 kB / 0.5655 GB, free: 14.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.699e-05/0.4384, allocations: 29.7 kB / 0.5655 GB, free: 14.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.843e-05/0.4385, allocations: 92.12 kB / 0.5656 GB, free: 14.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.816e-05/0.4386, allocations: 63.44 kB / 0.5657 GB, free: 14.42 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001794/0.4388, allocations: 85.59 kB / 0.5658 GB, free: 14.33 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.4389, allocations: 322.8 kB / 0.5661 GB, free: 14 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005893/0.4395, allocations: 223.8 kB / 0.5663 GB, free: 13.79 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006058/0.4401, allocations: 242.8 kB / 0.5665 GB, free: 13.55 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002187/0.4423, allocations: 0.559 MB / 0.5671 GB, free: 12.99 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4423, allocations: 0 / 0.5671 GB, free: 12.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001935/0.4443, allocations: 0.6066 MB / 0.5677 GB, free: 12.38 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.4443, allocations: 10.5 kB / 0.5677 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.4443, allocations: 0 / 0.5677 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.4443, allocations: 0 / 0.5677 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006644/0.445, allocations: 107.8 kB / 0.5678 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.445, allocations: 4 kB / 0.5678 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004251/0.4454, allocations: 31.95 kB / 0.5678 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.348e-05/0.4455, allocations: 31.94 kB / 0.5678 GB, free: 12.2 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001618/0.4456, allocations: 117.8 kB / 0.568 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.134e-05/0.4457, allocations: 7.953 kB / 0.568 GB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002266/0.448, allocations: 0.7335 MB / 0.5687 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.448, allocations: 0 / 0.5687 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.448, allocations: 3.938 kB / 0.5687 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.448, allocations: 3.984 kB / 0.5687 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004162/0.4521, allocations: 1.071 MB / 0.5697 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.4521, allocations: 0.6562 kB / 0.5697 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005445/0.4527, allocations: 103.8 kB / 0.5698 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.084e-06/0.4527, allocations: 0 / 0.5698 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.293e-05/0.4528, allocations: 27.95 kB / 0.5699 GB, free: 10.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.772e-06/0.4528, allocations: 3.984 kB / 0.5699 GB, free: 10.05 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/0.4528, allocations: 7.938 kB / 0.5699 GB, free: 10.04 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001848/0.4546, allocations: 0.5919 MB / 0.5704 GB, free: 9.418 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.765e-05/0.4546, allocations: 7.953 kB / 0.5705 GB, free: 9.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.822e-05/0.4547, allocations: 7.984 kB / 0.5705 GB, free: 9.402 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004005/0.4551, allocations: 23.97 kB / 0.5705 GB, free: 9.379 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.815e-05/0.4551, allocations: 19.95 kB / 0.5705 GB, free: 9.359 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.836e-05/0.4552, allocations: 35.95 kB / 0.5705 GB, free: 9.324 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.693e-05/0.4553, allocations: 83.22 kB / 0.5706 GB, free: 9.242 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4553, allocations: 4 kB / 0.5706 GB, free: 9.238 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001854/0.4571, allocations: 0.6519 MB / 0.5713 GB, free: 8.586 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005507/0.4626, allocations: 1.31 MB / 0.5725 GB, free: 7.227 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001317/0.4639, allocations: 439.5 kB / 0.573 GB, free: 6.797 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.4639, allocations: 0 / 0.573 GB, free: 6.797 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005657/0.4645, allocations: 196.1 kB / 0.5731 GB, free: 6.605 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.4648, allocations: 15.98 kB / 0.5732 GB, free: 6.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00333/0.4681, allocations: 0.6162 MB / 0.5738 GB, free: 5.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.735e-05/0.4682, allocations: 79.56 kB / 0.5738 GB, free: 5.809 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004717/0.4687, allocations: 125 kB / 0.574 GB, free: 5.684 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003432/0.4691, allocations: 103.3 kB / 0.574 GB, free: 5.582 MB / 414.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4691, allocations: 0 / 0.574 GB, free: 5.582 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1067/0.5758, allocations: 60.25 MB / 0.6329 GB, free: 9.438 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/12.1, allocations: 3.859 kB / 0.6329 GB, free: 9.434 MB / 478.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.03463107906282]