Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 196.7 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.416/1.416, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2865/0.2865, allocations: 39.94 MB / 309.7 MB, free: 9.324 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001633/0.001633, allocations: 70.39 kB / 377.6 MB, free: 12.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1099, allocations: 56.88 MB / 434.5 MB, free: 3.707 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001948/0.1119, allocations: 0.5412 MB / 435 MB, free: 3.168 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000763/0.1127, allocations: 410.7 kB / 435.4 MB, free: 2.762 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.653e-05/0.1128, allocations: 0 / 435.4 MB, free: 2.762 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.888e-05/0.1128, allocations: 3.938 kB / 435.4 MB, free: 2.758 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 3.562e-05/0.1128, allocations: 4 kB / 435.4 MB, free: 2.754 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005685/0.1134, allocations: 135.8 kB / 435.6 MB, free: 2.621 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.493e-05/0.1135, allocations: 23.97 kB / 435.6 MB, free: 2.598 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.637e-05/0.1135, allocations: 7.938 kB / 435.6 MB, free: 2.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.238e-05/0.1135, allocations: 11.94 kB / 435.6 MB, free: 2.578 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.611e-05/0.1136, allocations: 19.91 kB / 435.6 MB, free: 2.559 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.325e-05/0.1136, allocations: 4 kB / 435.6 MB, free: 2.555 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002859/0.1139, allocations: 155.8 kB / 435.8 MB, free: 2.402 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.013e-05/0.1139, allocations: 19.91 kB / 435.8 MB, free: 2.383 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.468e-05/0.114, allocations: 7.938 kB / 435.8 MB, free: 2.375 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002264/0.1142, allocations: 123.8 kB / 435.9 MB, free: 2.254 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.1142, allocations: 0 / 435.9 MB, free: 2.254 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.787e-06/0.1142, allocations: 0 / 435.9 MB, free: 2.254 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.311e-06/0.1142, allocations: 3.938 kB / 435.9 MB, free: 2.25 MB / 366.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.0004463/0.1147, allocations: 367.4 kB / 436.3 MB, free: 1.844 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.1148, allocations: 11.89 kB / 436.3 MB, free: 1.832 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.819e-05/0.1148, allocations: 8.844 kB / 436.3 MB, free: 1.824 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001029/0.1149, allocations: 172.3 kB / 436.5 MB, free: 1.617 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.493e-05/0.1149, allocations: 4.375 kB / 436.5 MB, free: 1.613 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.793e-05/0.115, allocations: 8.281 kB / 436.5 MB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001255/0.1151, allocations: 54.23 kB / 436.6 MB, free: 1.547 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.1151, allocations: 3.938 kB / 436.6 MB, free: 1.543 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.1151, allocations: 4 kB / 436.6 MB, free: 1.539 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.1151, allocations: 0 / 436.6 MB, free: 1.539 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.456e-05/0.1152, allocations: 31.86 kB / 436.6 MB, free: 1.508 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001811/0.1154, allocations: 173.7 kB / 436.8 MB, free: 1.289 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002039/0.1156, allocations: 54.56 kB / 436.8 MB, free: 1.227 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.352e-05/0.1157, allocations: 28.84 kB / 436.8 MB, free: 1.195 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002802/0.116, allocations: 109.3 kB / 437 MB, free: 1.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.317e-05/0.116, allocations: 38.5 kB / 437 MB, free: 1.023 MB / 366.1 MB Notification: Performance of pre-optimization done (n=9): time 1.142e-06/0.116, allocations: 0 / 437 MB, free: 1.023 MB / 366.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.15/0.2661, allocations: 6.381 MB / 443.4 MB, free: 10.61 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.31e-05/0.2662, allocations: 55.41 kB / 443.4 MB, free: 10.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.866e-05/0.2663, allocations: 101.8 kB / 443.5 MB, free: 10.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.128e-05/0.2663, allocations: 33.7 kB / 443.6 MB, free: 10.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.832e-05/0.2664, allocations: 80.14 kB / 443.6 MB, free: 10.31 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.547e-05/0.2665, allocations: 70.98 kB / 443.7 MB, free: 10.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001779/0.2666, allocations: 85.59 kB / 443.8 MB, free: 10.15 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.2668, allocations: 322.8 kB / 444.1 MB, free: 9.824 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005724/0.2674, allocations: 227.8 kB / 444.3 MB, free: 9.602 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000545/0.2679, allocations: 231.8 kB / 444.6 MB, free: 9.375 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002086/0.27, allocations: 0.5554 MB / 445.1 MB, free: 8.816 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.27, allocations: 4 kB / 445.1 MB, free: 8.812 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001827/0.2719, allocations: 0.6138 MB / 445.7 MB, free: 8.195 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.2719, allocations: 8 kB / 445.7 MB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.2719, allocations: 0 / 445.7 MB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.2719, allocations: 0 / 445.7 MB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006688/0.2726, allocations: 103.8 kB / 445.8 MB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.2726, allocations: 0 / 445.8 MB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000448/0.2731, allocations: 27.95 kB / 445.9 MB, free: 8.059 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.666e-05/0.2732, allocations: 31.95 kB / 445.9 MB, free: 8.027 MB / 382.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.0001444/0.2733, allocations: 130.2 kB / 446 MB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.227e-05/0.2734, allocations: 7.906 kB / 446 MB, free: 7.883 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002185/0.2756, allocations: 0.724 MB / 446.8 MB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.2756, allocations: 7.984 kB / 446.8 MB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.2756, allocations: 0 / 446.8 MB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.2756, allocations: 3.938 kB / 446.8 MB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004065/0.2797, allocations: 1.165 MB / 447.9 MB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.2797, allocations: 7.938 kB / 447.9 MB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005548/0.2803, allocations: 95.84 kB / 448 MB, free: 5.793 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.2803, allocations: 4 kB / 448 MB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.572e-05/0.2803, allocations: 27.95 kB / 448.1 MB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.2804, allocations: 7.938 kB / 448.1 MB, free: 5.754 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.2804, allocations: 8.188 kB / 448.1 MB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0017/0.2821, allocations: 0.5781 MB / 448.7 MB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.206e-05/0.2821, allocations: 85.02 kB / 448.7 MB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.8e-05/0.2822, allocations: 8 kB / 448.7 MB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004133/0.2826, allocations: 23.95 kB / 448.8 MB, free: 5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.401e-05/0.2827, allocations: 19.98 kB / 448.8 MB, free: 4.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.93e-05/0.2827, allocations: 27.95 kB / 448.8 MB, free: 4.953 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.95e-05/0.2828, allocations: 87.28 kB / 448.9 MB, free: 4.867 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2828, allocations: 0 / 448.9 MB, free: 4.867 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001824/0.2846, allocations: 0.6483 MB / 449.6 MB, free: 4.219 MB / 382.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.003249/0.2879, allocations: 298.8 kB / 449.8 MB, free: 3.918 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001265/0.2892, allocations: 463.1 kB / 450.3 MB, free: 3.469 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.2892, allocations: 0 / 450.3 MB, free: 3.469 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005409/0.2897, allocations: 204.1 kB / 450.5 MB, free: 3.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003043/0.29, allocations: 15.12 kB / 450.5 MB, free: 3.258 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002413/0.2925, allocations: 0.5138 MB / 451 MB, free: 2.699 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003098/0.2928, allocations: 0.6965 MB / 451.7 MB, free: 1.973 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005475/0.2933, allocations: 124.9 kB / 451.8 MB, free: 1.852 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002975/0.2936, allocations: 87.28 kB / 451.9 MB, free: 1.766 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2937, allocations: 0 / 451.9 MB, free: 1.766 MB / 382.1 MB Notification: Performance of Templates: time 0.2423/0.536, allocations: 57.39 MB / 0.4974 GB, free: 27.87 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1)