Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001125/0.001125, allocations: 77.97 kB / 21.42 MB, free: 3.074 MB / 18.57 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.001308/0.001308, allocations: 169.5 kB / 24.82 MB, free: 9.262 MB / 18.57 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.036/1.036, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.3327/0.3327, allocations: 34.27 MB / 296.1 MB, free: 0.707 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.104e-06/2.104e-06, allocations: 0 / 378.5 MB, free: 2.414 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.51e-05/2.72e-05, allocations: 6.312 kB / 378.5 MB, free: 2.406 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001391/0.001419, allocations: 0.5399 MB / 379 MB, free: 1.863 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006301/0.002049, allocations: 374.8 kB / 379.4 MB, free: 1.492 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.896e-05/0.002088, allocations: 0 / 379.4 MB, free: 1.492 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.928e-05/0.002107, allocations: 0 / 379.4 MB, free: 1.492 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.322e-05/0.00215, allocations: 3.938 kB / 379.4 MB, free: 1.488 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000499/0.002649, allocations: 143.4 kB / 379.5 MB, free: 1.348 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.11e-05/0.00271, allocations: 23.92 kB / 379.6 MB, free: 1.324 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.417e-05/0.002754, allocations: 7.984 kB / 379.6 MB, free: 1.316 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.122e-05/0.002796, allocations: 19.97 kB / 379.6 MB, free: 1.297 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.241e-05/0.002858, allocations: 15.92 kB / 379.6 MB, free: 1.281 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.201e-05/0.00287, allocations: 0 / 379.6 MB, free: 1.281 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002453/0.003115, allocations: 135.8 kB / 379.7 MB, free: 1.148 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.731e-05/0.003133, allocations: 7.984 kB / 379.7 MB, free: 1.141 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.732e-05/0.00315, allocations: 11.94 kB / 379.7 MB, free: 1.129 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001945/0.003344, allocations: 151.5 kB / 379.9 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.003347, allocations: 0 / 379.9 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.003348, allocations: 0 / 379.9 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.003352, allocations: 0 / 379.9 MB, free: 0.9805 MB / 346.7 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.0003777/0.00373, allocations: 396.2 kB / 380.3 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.003774, allocations: 12.03 kB / 380.3 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.344e-05/0.003808, allocations: 8.891 kB / 380.3 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.184e-05/0.0039, allocations: 112.6 kB / 380.4 MB, free: 412 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.003912, allocations: 4.375 kB / 380.4 MB, free: 408 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.84e-05/0.00393, allocations: 8.328 kB / 380.4 MB, free: 400 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.243e-05/0.004012, allocations: 50.23 kB / 380.5 MB, free: 344 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.004023, allocations: 192 / 380.5 MB, free: 344 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.572e-06/0.004029, allocations: 384 / 380.5 MB, free: 344 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.004037, allocations: 8.125 kB / 380.5 MB, free: 336 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.242e-05/0.00407, allocations: 11.98 kB / 380.5 MB, free: 324 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001285/0.004198, allocations: 113.1 kB / 380.6 MB, free: 184 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001545/0.004353, allocations: 67.03 kB / 380.7 MB, free: 104 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.726e-05/0.00438, allocations: 19.67 kB / 380.7 MB, free: 80 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001547/0.004535, allocations: 31.95 kB / 380.7 MB, free: 48 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.74e-05/0.004572, allocations: 45.66 kB / 380.8 MB, free: 15.99 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.453e-06/0.004574, allocations: 0 / 380.8 MB, free: 15.99 MB / 362.7 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.06574/0.07031, allocations: 6.013 MB / 386.8 MB, free: 9.938 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/0.07036, allocations: 55.41 kB / 386.8 MB, free: 9.871 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.594e-05/0.07046, allocations: 157.9 kB / 387 MB, free: 9.699 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.278e-05/0.0705, allocations: 29.7 kB / 387 MB, free: 9.664 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.277e-05/0.07055, allocations: 134.9 kB / 387.1 MB, free: 9.527 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.854e-05/0.07064, allocations: 71.34 kB / 387.2 MB, free: 9.457 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001332/0.07078, allocations: 99.19 kB / 387.3 MB, free: 9.352 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.07093, allocations: 0.4884 MB / 387.8 MB, free: 8.852 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002138/0.07114, allocations: 179.9 kB / 388 MB, free: 8.676 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.07134, allocations: 179.9 kB / 388.2 MB, free: 8.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000878/0.07222, allocations: 454 kB / 388.6 MB, free: 8.055 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.07222, allocations: 0 / 388.6 MB, free: 8.055 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0008036/0.07302, allocations: 0.509 MB / 389.1 MB, free: 7.539 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.07305, allocations: 12 kB / 389.1 MB, free: 7.527 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.07306, allocations: 0 / 389.1 MB, free: 7.527 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.07308, allocations: 0 / 389.1 MB, free: 7.527 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003181/0.0734, allocations: 104 kB / 389.2 MB, free: 7.426 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.0734, allocations: 4 kB / 389.2 MB, free: 7.422 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00017/0.07357, allocations: 27.97 kB / 389.3 MB, free: 7.395 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.766e-05/0.07361, allocations: 27.94 kB / 389.3 MB, free: 7.367 MB / 362.7 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.0001417/0.07375, allocations: 168.5 kB / 389.4 MB, free: 7.191 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.594e-05/0.07382, allocations: 19.89 kB / 389.5 MB, free: 7.172 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001008/0.07483, allocations: 0.6148 MB / 390.1 MB, free: 6.555 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.07483, allocations: 4 kB / 390.1 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.07484, allocations: 0 / 390.1 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.07485, allocations: 0 / 390.1 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001921/0.07677, allocations: 0.9867 MB / 391.1 MB, free: 5.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.864e-06/0.07678, allocations: 4 kB / 391.1 MB, free: 5.496 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002516/0.07703, allocations: 95.8 kB / 391.2 MB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.07704, allocations: 4 kB / 391.2 MB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.393e-05/0.07707, allocations: 27.95 kB / 391.2 MB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.9e-06/0.07708, allocations: 4 kB / 391.2 MB, free: 5.367 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.07708, allocations: 0 / 391.2 MB, free: 5.367 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007979/0.07788, allocations: 0.5586 MB / 391.8 MB, free: 4.766 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.212e-05/0.0779, allocations: 11.95 kB / 391.8 MB, free: 4.754 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.063e-05/0.07793, allocations: 3.984 kB / 391.8 MB, free: 4.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001793/0.07811, allocations: 23.98 kB / 391.8 MB, free: 4.727 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.056e-05/0.07814, allocations: 23.84 kB / 391.8 MB, free: 4.703 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.452e-05/0.07817, allocations: 31.95 kB / 391.9 MB, free: 4.672 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.232e-05/0.07823, allocations: 123.2 kB / 392 MB, free: 4.551 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.07823, allocations: 0 / 392 MB, free: 4.551 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001688/0.07991, allocations: 0.6519 MB / 392.6 MB, free: 3.898 MB / 362.7 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.002349/0.08226, allocations: 322.5 kB / 392.9 MB, free: 3.574 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005382/0.0828, allocations: 375.3 kB / 393.3 MB, free: 3.203 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.08281, allocations: 4 kB / 393.3 MB, free: 3.199 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001815/0.08299, allocations: 168.8 kB / 393.5 MB, free: 3.035 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002493/0.08324, allocations: 51.94 kB / 393.5 MB, free: 2.984 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001092/0.08433, allocations: 0.4927 MB / 394 MB, free: 2.438 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.261e-05/0.08438, allocations: 63.58 kB / 394.1 MB, free: 2.352 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002758/0.08466, allocations: 133.2 kB / 394.2 MB, free: 2.219 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002899/0.08495, allocations: 150.1 kB / 394.4 MB, free: 2.07 MB / 362.7 MB Notification: Performance of SimCode: time 2.395e-06/0.08495, allocations: 0 / 394.4 MB, free: 2.07 MB / 362.7 MB Notification: Performance of Templates: time 0.4029/0.4878, allocations: 64.11 MB / 458.5 MB, free: 80.57 MB / 410.8 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & ./ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.564215389080346]