Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001779/0.001779, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002043/0.002043, allocations: 207.2 kB / 23.73 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 230.5 MB / 257.4 MB, free: 7.758 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2239/0.2239, allocations: 46.95 MB / 360.8 MB, free: 3.922 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002327/0.002327, allocations: 83.88 kB / 0.4962 GB, free: 7.551 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.2936, allocations: 66.08 MB / 0.5607 GB, free: 4.051 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001569/0.2951, allocations: 0.5328 MB / 0.5612 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007715/0.2959, allocations: 366.9 kB / 0.5616 GB, free: 3.16 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.774e-05/0.2959, allocations: 3.938 kB / 0.5616 GB, free: 3.156 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.683e-05/0.296, allocations: 3.938 kB / 0.5616 GB, free: 3.152 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.033e-05/0.296, allocations: 0 / 0.5616 GB, free: 3.152 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004681/0.2965, allocations: 143.3 kB / 0.5617 GB, free: 3.016 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.085e-05/0.2965, allocations: 31.91 kB / 0.5617 GB, free: 2.984 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.754e-05/0.2966, allocations: 4 kB / 0.5617 GB, free: 2.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.983e-05/0.2966, allocations: 7.984 kB / 0.5617 GB, free: 2.973 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.303e-05/0.2966, allocations: 19.86 kB / 0.5618 GB, free: 2.953 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.183e-05/0.2966, allocations: 4 kB / 0.5618 GB, free: 2.949 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002497/0.2969, allocations: 139.8 kB / 0.5619 GB, free: 2.812 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.385e-05/0.2969, allocations: 4 kB / 0.5619 GB, free: 2.809 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.923e-05/0.2969, allocations: 7.938 kB / 0.5619 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002024/0.2971, allocations: 129.6 kB / 0.562 GB, free: 2.676 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.2971, allocations: 0 / 0.562 GB, free: 2.676 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2971, allocations: 4 kB / 0.562 GB, free: 2.672 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.9e-06/0.2971, allocations: 0 / 0.562 GB, free: 2.672 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.000419/0.2976, allocations: 293.9 kB / 0.5623 GB, free: 2.355 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.72e-05/0.2976, allocations: 12.03 kB / 0.5623 GB, free: 2.344 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.443e-05/0.2977, allocations: 34.75 kB / 0.5624 GB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.627e-05/0.2977, allocations: 8.922 kB / 0.5624 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.962e-05/0.2978, allocations: 106.5 kB / 0.5625 GB, free: 2.164 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.2978, allocations: 4.375 kB / 0.5625 GB, free: 2.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.394e-05/0.2978, allocations: 8.375 kB / 0.5625 GB, free: 2.152 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001273/0.2979, allocations: 61.92 kB / 0.5625 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.298, allocations: 4 kB / 0.5625 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.254e-06/0.298, allocations: 0 / 0.5625 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.298, allocations: 0 / 0.5625 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.4e-05/0.298, allocations: 23.98 kB / 0.5626 GB, free: 2.059 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001817/0.2982, allocations: 140.7 kB / 0.5627 GB, free: 1.879 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002099/0.2984, allocations: 58.58 kB / 0.5628 GB, free: 1.812 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.672e-05/0.2985, allocations: 20.86 kB / 0.5628 GB, free: 1.789 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002289/0.2987, allocations: 35.95 kB / 0.5628 GB, free: 1.754 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/0.2987, allocations: 38.5 kB / 0.5629 GB, free: 1.707 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.112e-06/0.2987, allocations: 0 / 0.5629 GB, free: 1.707 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.1348/0.4335, allocations: 6.384 MB / 0.5691 GB, free: 11.28 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.634e-05/0.4336, allocations: 59.39 kB / 0.5691 GB, free: 11.21 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.784e-05/0.4337, allocations: 101.9 kB / 0.5692 GB, free: 11.1 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.796e-05/0.4337, allocations: 29.7 kB / 0.5693 GB, free: 11.07 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.826e-05/0.4338, allocations: 84.14 kB / 0.5693 GB, free: 10.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.619e-05/0.4339, allocations: 75.34 kB / 0.5694 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001802/0.434, allocations: 85.59 kB / 0.5695 GB, free: 10.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.4342, allocations: 322.8 kB / 0.5698 GB, free: 10.49 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000552/0.4347, allocations: 231.8 kB / 0.57 GB, free: 10.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005548/0.4353, allocations: 227.8 kB / 0.5702 GB, free: 10.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002063/0.4374, allocations: 0.5591 MB / 0.5708 GB, free: 9.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.4374, allocations: 0 / 0.5708 GB, free: 9.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001893/0.4393, allocations: 0.6091 MB / 0.5714 GB, free: 8.867 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.4393, allocations: 8 kB / 0.5714 GB, free: 8.859 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.4393, allocations: 0 / 0.5714 GB, free: 8.859 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.4393, allocations: 0 / 0.5714 GB, free: 8.859 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006437/0.44, allocations: 107.8 kB / 0.5715 GB, free: 8.754 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.44, allocations: 4 kB / 0.5715 GB, free: 8.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004011/0.4404, allocations: 27.95 kB / 0.5715 GB, free: 8.723 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.072e-05/0.4404, allocations: 35.92 kB / 0.5716 GB, free: 8.688 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.0001719/0.4406, allocations: 129.7 kB / 0.5717 GB, free: 8.551 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.87e-05/0.4407, allocations: 7.953 kB / 0.5717 GB, free: 8.543 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00216/0.4428, allocations: 0.7243 MB / 0.5724 GB, free: 7.809 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.4428, allocations: 0 / 0.5724 GB, free: 7.809 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.4428, allocations: 3.938 kB / 0.5724 GB, free: 7.805 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.4428, allocations: 8 kB / 0.5724 GB, free: 7.797 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003913/0.4468, allocations: 1.07 MB / 0.5735 GB, free: 6.664 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.4468, allocations: 0 / 0.5735 GB, free: 6.664 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005291/0.4473, allocations: 99.8 kB / 0.5736 GB, free: 6.566 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.4473, allocations: 0 / 0.5736 GB, free: 6.566 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.859e-05/0.4473, allocations: 36.61 kB / 0.5736 GB, free: 6.531 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.4474, allocations: 0 / 0.5736 GB, free: 6.531 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4474, allocations: 4 kB / 0.5736 GB, free: 6.527 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00169/0.449, allocations: 0.5845 MB / 0.5742 GB, free: 5.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.84e-05/0.4491, allocations: 11.95 kB / 0.5742 GB, free: 5.898 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.914e-05/0.4491, allocations: 7.938 kB / 0.5742 GB, free: 5.891 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003873/0.4495, allocations: 31.95 kB / 0.5742 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.7e-05/0.4495, allocations: 15.92 kB / 0.5742 GB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.255e-05/0.4496, allocations: 27.95 kB / 0.5743 GB, free: 5.816 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.886e-05/0.4496, allocations: 87.2 kB / 0.5743 GB, free: 5.73 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4496, allocations: 0 / 0.5743 GB, free: 5.73 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001638/0.4513, allocations: 0.6519 MB / 0.575 GB, free: 5.078 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.00494/0.4562, allocations: 1.302 MB / 0.5762 GB, free: 3.727 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001232/0.4574, allocations: 443.5 kB / 0.5767 GB, free: 3.293 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.4574, allocations: 0 / 0.5767 GB, free: 3.293 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005452/0.458, allocations: 191.7 kB / 0.5769 GB, free: 3.105 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.4583, allocations: 17.42 kB / 0.5769 GB, free: 3.094 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003154/0.4614, allocations: 0.6276 MB / 0.5775 GB, free: 2.406 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001025/0.4616, allocations: 83.56 kB / 0.5776 GB, free: 2.301 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004487/0.462, allocations: 125 kB / 0.5777 GB, free: 2.176 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003293/0.4623, allocations: 99.28 kB / 0.5778 GB, free: 2.078 MB / 414.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4623, allocations: 0 / 0.5778 GB, free: 2.078 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1034/0.5658, allocations: 60.24 MB / 0.6366 GB, free: 5.828 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.73, allocations: 0 / 0.6366 GB, free: 5.828 MB / 478.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 14.581804287154227]