Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.01043/0.01043, allocations: 175.9 kB / 15.12 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.195/2.195, allocations: 194.5 MB / 210.3 MB, free: 7.797 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002111/0.002111, allocations: 104.7 kB / 255.6 MB, free: 10.43 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2809/0.2809, allocations: 40.01 MB / 340.8 MB, free: 11.43 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007045/0.0007043, allocations: 16.69 kB / 406.3 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1197, allocations: 54.87 MB / 461.1 MB, free: 3.242 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1492/0.269, allocations: 79.7 MB / 0.5282 GB, free: 3.43 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000267/0.2693, allocations: 63.97 kB / 0.5282 GB, free: 3.367 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01449/0.2838, allocations: 2.971 MB / 0.5311 GB, free: 400 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.2839, allocations: 0 / 0.5311 GB, free: 400 kB / 378.7 MB Notification: Performance of Transformations before backend: time 1.217e-05/0.2839, allocations: 4 kB / 0.5311 GB, free: 396 kB / 378.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.3096/0.5935, allocations: 371.1 kB / 0.5315 GB, free: 82.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.41e-05/0.5936, allocations: 8.312 kB / 0.5315 GB, free: 82.41 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.704e-05/0.5937, allocations: 33.94 kB / 0.5315 GB, free: 82.37 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.43e-05/0.5937, allocations: 1.5 kB / 0.5315 GB, free: 82.37 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.5939, allocations: 162.1 kB / 0.5317 GB, free: 82.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.5939, allocations: 3.188 kB / 0.5317 GB, free: 82.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.507e-05/0.5939, allocations: 8.594 kB / 0.5317 GB, free: 82.17 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001628/0.5941, allocations: 55.64 kB / 0.5317 GB, free: 82.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.5941, allocations: 10.3 kB / 0.5318 GB, free: 82.13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.5942, allocations: 1 kB / 0.5318 GB, free: 82.13 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.5942, allocations: 2.969 kB / 0.5318 GB, free: 82.13 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001055/0.5943, allocations: 26.92 kB / 0.5318 GB, free: 82.13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001972/0.5945, allocations: 170.7 kB / 0.5319 GB, free: 81.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003131/0.5948, allocations: 61.83 kB / 0.532 GB, free: 81.92 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003547/0.5952, allocations: 115 kB / 0.5321 GB, free: 81.83 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.891e-05/0.5952, allocations: 32.66 kB / 0.5321 GB, free: 81.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 2.114e-06/0.5952, allocations: 0 / 0.5321 GB, free: 81.79 MB / 378.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.2523/0.8476, allocations: 6.082 MB / 0.5381 GB, free: 81.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.8476, allocations: 56.8 kB / 0.5381 GB, free: 80.99 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.8478, allocations: 94.5 kB / 0.5382 GB, free: 80.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.62e-05/0.8478, allocations: 28.61 kB / 0.5383 GB, free: 80.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.951e-05/0.8479, allocations: 88.75 kB / 0.5383 GB, free: 80.78 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.848, allocations: 62.72 kB / 0.5384 GB, free: 80.74 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.941e-05/0.8481, allocations: 5.125 kB / 0.5384 GB, free: 80.74 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.013e-05/0.8481, allocations: 322.6 kB / 0.5387 GB, free: 80.42 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007896/0.8489, allocations: 218.3 kB / 0.5389 GB, free: 80.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007771/0.8497, allocations: 217.2 kB / 0.5391 GB, free: 80.35 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001801/0.8516, allocations: 278.5 kB / 0.5394 GB, free: 80.31 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.8516, allocations: 0 / 0.5394 GB, free: 80.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.002854/0.8544, allocations: 0.5937 MB / 0.54 GB, free: 80.17 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.101e-05/0.8545, allocations: 9.266 kB / 0.54 GB, free: 80.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.8545, allocations: 480 / 0.54 GB, free: 80.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.388e-05/0.8546, allocations: 1.344 kB / 0.54 GB, free: 80.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009186/0.8555, allocations: 92.83 kB / 0.5401 GB, free: 80.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.8555, allocations: 1.062 kB / 0.5401 GB, free: 80.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006223/0.8562, allocations: 22.95 kB / 0.5401 GB, free: 80.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.004e-05/0.8563, allocations: 30.14 kB / 0.5401 GB, free: 80.11 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00017/0.8564, allocations: 124.3 kB / 0.5402 GB, free: 79.99 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.006e-05/0.8565, allocations: 8.609 kB / 0.5403 GB, free: 79.99 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003325/0.8599, allocations: 0.6774 MB / 0.5409 GB, free: 79.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.278e-06/0.8599, allocations: 1.625 kB / 0.5409 GB, free: 79.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.8599, allocations: 0 / 0.5409 GB, free: 79.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.86, allocations: 5.781 kB / 0.5409 GB, free: 79.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005159/0.8651, allocations: 1.099 MB / 0.542 GB, free: 79.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.355e-06/0.8652, allocations: 1.375 kB / 0.542 GB, free: 79.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007497/0.8659, allocations: 86.67 kB / 0.5421 GB, free: 79.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.073e-05/0.866, allocations: 2.969 kB / 0.5421 GB, free: 79.11 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.17e-05/0.866, allocations: 23.78 kB / 0.5421 GB, free: 79.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.997e-06/0.8661, allocations: 6.594 kB / 0.5421 GB, free: 79.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.623e-06/0.8661, allocations: 6.047 kB / 0.5421 GB, free: 79.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002663/0.8687, allocations: 0.6358 MB / 0.5427 GB, free: 78.72 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.565e-05/0.8688, allocations: 90.45 kB / 0.5428 GB, free: 78.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.094e-05/0.8689, allocations: 6.844 kB / 0.5428 GB, free: 78.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005582/0.8695, allocations: 29.62 kB / 0.5429 GB, free: 78.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.792e-05/0.8695, allocations: 13.77 kB / 0.5429 GB, free: 78.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.633e-05/0.8696, allocations: 22.91 kB / 0.5429 GB, free: 78.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.379e-05/0.8697, allocations: 82.06 kB / 0.543 GB, free: 78.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.8697, allocations: 1.219 kB / 0.543 GB, free: 78.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002678/0.8724, allocations: 0.6277 MB / 0.5436 GB, free: 78.49 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007985/0.8804, allocations: 1.829 MB / 0.5454 GB, free: 77.06 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001842/0.8823, allocations: 426.2 kB / 0.5458 GB, free: 76.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.8824, allocations: 5.094 kB / 0.5458 GB, free: 76.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007553/0.8831, allocations: 184.6 kB / 0.546 GB, free: 76.94 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.8834, allocations: 18.09 kB / 0.546 GB, free: 76.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005167/0.8886, allocations: 0.6509 MB / 0.5466 GB, free: 76.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001895/0.8888, allocations: 0.6951 MB / 0.5473 GB, free: 75.81 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006882/0.8895, allocations: 101.3 kB / 0.5474 GB, free: 75.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004348/0.89, allocations: 75.44 kB / 0.5475 GB, free: 75.74 MB / 378.7 MB Notification: Performance of SimCode: time 1.613e-06/0.89, allocations: 1.031 kB / 0.5475 GB, free: 75.74 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07694/0.9669, allocations: 19.48 MB / 0.5665 GB, free: 57.68 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003526/0.9674, allocations: 191.4 kB / 0.5667 GB, free: 57.45 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.759/3.727, allocations: 0 / 0.5667 GB, free: 57.45 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat does not exist to compare? outputFormat=mat