Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",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.01144/0.01144, allocations: 176.1 kB / 15.12 MB, free: 5.984 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.071/2.071, 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.001997/0.001997, 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.2593/0.2593, allocations: 40 MB / 340.8 MB, free: 11.42 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004691/0.0004691, allocations: 16.88 kB / 406.3 MB, free: 51.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09771/0.09822, allocations: 54.88 MB / 461.1 MB, free: 3.191 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1459/0.2442, allocations: 79.52 MB / 0.528 GB, free: 3.555 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002468/0.2445, allocations: 63.97 kB / 0.5281 GB, free: 3.492 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008354/0.2529, allocations: 1.796 MB / 0.5298 GB, free: 1.691 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2529, allocations: 0 / 0.5298 GB, free: 1.691 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.615e-06/0.253, allocations: 0 / 0.5298 GB, free: 1.691 MB / 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.0004807/0.2534, allocations: 375.1 kB / 0.5302 GB, free: 1.277 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.2535, allocations: 12.03 kB / 0.5302 GB, free: 1.266 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.871e-05/0.2536, allocations: 38.56 kB / 0.5302 GB, free: 1.219 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.569e-05/0.2536, allocations: 0 / 0.5302 GB, free: 1.219 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001734/0.2538, allocations: 167.1 kB / 0.5304 GB, free: 1.016 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.2538, allocations: 0 / 0.5304 GB, free: 1.016 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.599e-05/0.2539, allocations: 8 kB / 0.5304 GB, free: 1.008 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001545/0.254, allocations: 53.62 kB / 0.5304 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.282e-05/0.2541, allocations: 11.84 kB / 0.5305 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.2541, allocations: 3.938 kB / 0.5305 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.2541, allocations: 4 kB / 0.5305 GB, free: 0.9297 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001018/0.2542, allocations: 27.98 kB / 0.5305 GB, free: 0.9023 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002306/0.2545, allocations: 169.6 kB / 0.5306 GB, free: 0.6875 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002951/0.2548, allocations: 62.58 kB / 0.5307 GB, free: 0.6172 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003402/0.2551, allocations: 109.1 kB / 0.5308 GB, free: 0.4922 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.2552, allocations: 34.56 kB / 0.5308 GB, free: 460 kB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.974e-06/0.2552, allocations: 0 / 0.5308 GB, free: 460 kB / 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.3988/0.654, allocations: 2.809 MB / 0.5336 GB, free: 82.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.6541, allocations: 56.97 kB / 0.5336 GB, free: 82.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.55e-05/0.6542, allocations: 96.53 kB / 0.5337 GB, free: 82.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.513e-05/0.6542, allocations: 27.86 kB / 0.5338 GB, free: 82.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.815e-05/0.6543, allocations: 83.61 kB / 0.5338 GB, free: 82.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.606e-05/0.6544, allocations: 64.78 kB / 0.5339 GB, free: 82.19 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-05/0.6544, allocations: 8.844 kB / 0.5339 GB, free: 82.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.485e-05/0.6545, allocations: 318.3 kB / 0.5342 GB, free: 81.87 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007029/0.6552, allocations: 189.2 kB / 0.5344 GB, free: 81.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007019/0.6559, allocations: 188.7 kB / 0.5346 GB, free: 81.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009308/0.6569, allocations: 217 kB / 0.5348 GB, free: 81.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.6569, allocations: 0 / 0.5348 GB, free: 81.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001905/0.6588, allocations: 499.8 kB / 0.5353 GB, free: 81.81 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.659e-05/0.6589, allocations: 12.09 kB / 0.5353 GB, free: 81.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.6589, allocations: 0 / 0.5353 GB, free: 81.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.378e-05/0.6589, allocations: 1.734 kB / 0.5353 GB, free: 81.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007017/0.6596, allocations: 84.8 kB / 0.5354 GB, free: 81.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.6597, allocations: 1.469 kB / 0.5354 GB, free: 81.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003988/0.6601, allocations: 25.95 kB / 0.5354 GB, free: 81.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.318e-05/0.6602, allocations: 16.91 kB / 0.5354 GB, free: 81.81 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.0001553/0.6603, allocations: 125.2 kB / 0.5355 GB, free: 81.69 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.787e-05/0.6604, allocations: 8.578 kB / 0.5355 GB, free: 81.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002334/0.6627, allocations: 0.5673 MB / 0.5361 GB, free: 81.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.6628, allocations: 3.469 kB / 0.5361 GB, free: 81.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.6628, allocations: 0.6094 kB / 0.5361 GB, free: 81.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.6628, allocations: 0.7031 kB / 0.5361 GB, free: 81.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003707/0.6665, allocations: 0.9613 MB / 0.537 GB, free: 81.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.6666, allocations: 6.781 kB / 0.537 GB, free: 81.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005528/0.6672, allocations: 73.67 kB / 0.5371 GB, free: 81.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.969e-06/0.6672, allocations: 3.438 kB / 0.5371 GB, free: 81.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.023e-05/0.6672, allocations: 17.72 kB / 0.5371 GB, free: 81.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.115e-06/0.6673, allocations: 4 kB / 0.5371 GB, free: 81.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.144e-06/0.6673, allocations: 9.078 kB / 0.5371 GB, free: 81.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001657/0.6689, allocations: 0.5454 MB / 0.5377 GB, free: 80.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.928e-05/0.669, allocations: 91.2 kB / 0.5377 GB, free: 80.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.619e-05/0.6691, allocations: 5.125 kB / 0.5378 GB, free: 80.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003601/0.6694, allocations: 26.56 kB / 0.5378 GB, free: 80.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.075e-05/0.6695, allocations: 23 kB / 0.5378 GB, free: 80.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.127e-05/0.6696, allocations: 16.98 kB / 0.5378 GB, free: 80.79 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.168e-05/0.6696, allocations: 86.17 kB / 0.5379 GB, free: 80.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.202e-06/0.6696, allocations: 0 / 0.5379 GB, free: 80.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001992/0.6716, allocations: 346.2 kB / 0.5382 GB, free: 80.69 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.008718/0.6804, allocations: 1.663 MB / 0.5399 GB, free: 79.42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003394/0.6839, allocations: 376.2 kB / 0.5402 GB, free: 79.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.686e-06/0.684, allocations: 3.844 kB / 0.5402 GB, free: 79.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007556/0.6847, allocations: 168.5 kB / 0.5404 GB, free: 79.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000241/0.685, allocations: 10.11 kB / 0.5404 GB, free: 79.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004457/0.6894, allocations: 0.5893 MB / 0.541 GB, free: 79.09 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002986/0.6898, allocations: 0.6966 MB / 0.5416 GB, free: 78.39 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001144/0.691, allocations: 98.05 kB / 0.5417 GB, free: 78.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006805/0.6917, allocations: 61.48 kB / 0.5418 GB, free: 78.34 MB / 378.7 MB Notification: Performance of SimCode: time 2.104e-06/0.6918, allocations: 0 / 0.5418 GB, free: 78.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04502/0.7368, allocations: 8.61 MB / 0.5502 GB, free: 74.48 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002678/0.7371, allocations: 189.6 kB / 0.5504 GB, free: 74.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.519/3.256, allocations: 0 / 0.5504 GB, free: 74.25 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat does not exist to compare? outputFormat=mat