Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001418/0.001418, allocations: 101.9 kB / 20.48 MB, free: 1.383 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.001578/0.001578, allocations: 216.1 kB / 23.77 MB, free: 4.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.559/1.559, allocations: 207.7 MB / 234.6 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2357/0.2357, allocations: 44.27 MB / 331.1 MB, free: 9.41 MB / 270.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.002436/0.002436, allocations: 67.89 kB / 468.3 MB, free: 4.387 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1173, allocations: 61.05 MB / 0.5169 GB, free: 7.207 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001891/0.1191, allocations: 0.5376 MB / 0.5174 GB, free: 6.668 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00086/0.12, allocations: 379.1 kB / 0.5178 GB, free: 6.293 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.077e-05/0.12, allocations: 0 / 0.5178 GB, free: 6.293 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.535e-05/0.1201, allocations: 0 / 0.5178 GB, free: 6.293 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.166e-05/0.1201, allocations: 7.938 kB / 0.5178 GB, free: 6.285 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005582/0.1207, allocations: 139.5 kB / 0.5179 GB, free: 6.148 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.597e-05/0.1207, allocations: 31.92 kB / 0.518 GB, free: 6.117 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.675e-05/0.1208, allocations: 0 / 0.518 GB, free: 6.117 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.108e-05/0.1208, allocations: 19.91 kB / 0.518 GB, free: 6.098 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.584e-05/0.1209, allocations: 19.92 kB / 0.518 GB, free: 6.078 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.154e-05/0.1209, allocations: 0 / 0.518 GB, free: 6.078 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002843/0.1212, allocations: 139.8 kB / 0.5181 GB, free: 5.941 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.241e-05/0.1212, allocations: 15.92 kB / 0.5181 GB, free: 5.926 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.646e-05/0.1212, allocations: 11.94 kB / 0.5182 GB, free: 5.914 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002457/0.1215, allocations: 119.6 kB / 0.5183 GB, free: 5.797 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1215, allocations: 0 / 0.5183 GB, free: 5.797 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1215, allocations: 0 / 0.5183 GB, free: 5.797 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.1215, allocations: 3.984 kB / 0.5183 GB, free: 5.793 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.0004484/0.1219, allocations: 290 kB / 0.5186 GB, free: 5.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.122, allocations: 12.03 kB / 0.5186 GB, free: 5.469 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.637e-05/0.122, allocations: 4.188 kB / 0.5186 GB, free: 5.465 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.23e-05/0.122, allocations: 34.73 kB / 0.5186 GB, free: 5.422 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.033e-05/0.1221, allocations: 4.938 kB / 0.5186 GB, free: 5.418 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001134/0.1222, allocations: 118.4 kB / 0.5187 GB, free: 5.277 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.1222, allocations: 8.312 kB / 0.5187 GB, free: 5.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.589e-05/0.1222, allocations: 4.375 kB / 0.5187 GB, free: 5.266 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001435/0.1223, allocations: 65.67 kB / 0.5188 GB, free: 5.195 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.1224, allocations: 0 / 0.5188 GB, free: 5.195 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.547e-06/0.1224, allocations: 0 / 0.5188 GB, free: 5.195 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.948e-06/0.1224, allocations: 4 kB / 0.5188 GB, free: 5.191 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.29e-05/0.1225, allocations: 31.98 kB / 0.5188 GB, free: 5.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001878/0.1226, allocations: 136.7 kB / 0.519 GB, free: 4.984 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002298/0.1229, allocations: 54.59 kB / 0.519 GB, free: 4.922 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.177e-05/0.1229, allocations: 24.84 kB / 0.519 GB, free: 4.895 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002589/0.1232, allocations: 27.95 kB / 0.5191 GB, free: 4.867 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.1232, allocations: 38.5 kB / 0.5191 GB, free: 4.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 3.116e-06/0.1232, allocations: 3.984 kB / 0.5191 GB, free: 4.816 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.1421/0.2653, allocations: 6.368 MB / 0.5253 GB, free: 14.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.901e-05/0.2654, allocations: 55.41 kB / 0.5254 GB, free: 14.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.2655, allocations: 105.8 kB / 0.5255 GB, free: 14.23 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.392e-05/0.2656, allocations: 29.7 kB / 0.5255 GB, free: 14.19 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.178e-05/0.2656, allocations: 84.08 kB / 0.5256 GB, free: 14.11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.2658, allocations: 67.42 kB / 0.5256 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000231/0.266, allocations: 93.58 kB / 0.5257 GB, free: 13.94 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.2662, allocations: 318.8 kB / 0.526 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006804/0.2668, allocations: 239.8 kB / 0.5263 GB, free: 13.39 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006129/0.2675, allocations: 227.8 kB / 0.5265 GB, free: 13.16 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003372/0.2708, allocations: 0.5577 MB / 0.527 GB, free: 12.61 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.2708, allocations: 0 / 0.527 GB, free: 12.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.003267/0.2741, allocations: 0.6066 MB / 0.5276 GB, free: 11.99 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.043e-05/0.2741, allocations: 4 kB / 0.5276 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.2741, allocations: 0 / 0.5276 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.2742, allocations: 480 / 0.5276 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.2752, allocations: 119.8 kB / 0.5277 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.2752, allocations: 0 / 0.5277 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007378/0.276, allocations: 23.95 kB / 0.5278 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001206/0.2761, allocations: 35.89 kB / 0.5278 GB, free: 11.81 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.0002639/0.2763, allocations: 121.8 kB / 0.5279 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.2765, allocations: 7.953 kB / 0.5279 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003143/0.2796, allocations: 0.7313 MB / 0.5286 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.2796, allocations: 4 kB / 0.5286 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.2796, allocations: 256 / 0.5286 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.2796, allocations: 3.938 kB / 0.5286 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005999/0.2856, allocations: 1.094 MB / 0.5297 GB, free: 9.773 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.936e-06/0.2856, allocations: 0 / 0.5297 GB, free: 9.773 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008834/0.2865, allocations: 103.8 kB / 0.5298 GB, free: 9.672 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.218e-05/0.2865, allocations: 4 kB / 0.5298 GB, free: 9.668 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.379e-05/0.2866, allocations: 23.95 kB / 0.5298 GB, free: 9.645 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.16e-05/0.2866, allocations: 4 kB / 0.5298 GB, free: 9.641 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.2866, allocations: 0 / 0.5298 GB, free: 9.641 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002769/0.2894, allocations: 0.5823 MB / 0.5304 GB, free: 9.023 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.207e-05/0.2894, allocations: 7.953 kB / 0.5304 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.736e-05/0.2895, allocations: 4 kB / 0.5304 GB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006668/0.2902, allocations: 39.89 kB / 0.5305 GB, free: 8.973 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.529e-05/0.2902, allocations: 7.984 kB / 0.5305 GB, free: 8.965 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.282e-05/0.2903, allocations: 35.89 kB / 0.5305 GB, free: 8.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001095/0.2904, allocations: 91.2 kB / 0.5306 GB, free: 8.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2904, allocations: 0 / 0.5306 GB, free: 8.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003103/0.2935, allocations: 0.6402 MB / 0.5312 GB, free: 8.199 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.008811/0.3024, allocations: 1.306 MB / 0.5325 GB, free: 6.844 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002005/0.3044, allocations: 439.5 kB / 0.5329 GB, free: 6.414 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.3044, allocations: 4 kB / 0.5329 GB, free: 6.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008929/0.3053, allocations: 195.7 kB / 0.5331 GB, free: 6.219 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000491/0.3058, allocations: 19.38 kB / 0.5331 GB, free: 6.203 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005842/0.3116, allocations: 0.6089 MB / 0.5337 GB, free: 5.535 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001577/0.3118, allocations: 83.31 kB / 0.5338 GB, free: 5.43 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008261/0.3126, allocations: 125 kB / 0.5339 GB, free: 5.305 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000604/0.3132, allocations: 99.27 kB / 0.534 GB, free: 5.207 MB / 414.1 MB Notification: Performance of SimCode: time 2.475e-06/0.3132, allocations: 0 / 0.534 GB, free: 5.207 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.318/0.6312, allocations: 59.89 MB / 0.5925 GB, free: 10.55 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.61, allocations: 11.92 kB / 0.5925 GB, free: 10.54 MB / 430.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.906229014974087]