Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.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.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_FirstOrderHold",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.01396/0.01397, allocations: 176.2 kB / 15.12 MB, free: 6.043 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.134/2.134, allocations: 194.5 MB / 210.3 MB, free: 11.38 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.001977/0.001976, allocations: 112.5 kB / 255.6 MB, free: 14.52 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.5031/0.5031, allocations: 40.01 MB / 340.8 MB, free: 14.99 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004915/0.0004916, allocations: 12 kB / 406.3 MB, free: 13.45 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3957/0.3963, allocations: 54.86 MB / 461.1 MB, free: 24.65 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1668/0.5631, allocations: 80.8 MB / 0.5292 GB, free: 10.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003471/0.5636, allocations: 63.97 kB / 0.5293 GB, free: 10.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01007/0.5737, allocations: 1.443 MB / 0.5307 GB, free: 8.844 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.604e-06/0.5737, allocations: 0 / 0.5307 GB, free: 8.844 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.285e-05/0.5738, allocations: 11.94 kB / 0.5307 GB, free: 8.832 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001045/0.5748, allocations: 391.1 kB / 0.5311 GB, free: 8.402 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.255e-05/0.5749, allocations: 8.031 kB / 0.5311 GB, free: 8.395 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.078e-05/0.575, allocations: 42.52 kB / 0.5311 GB, free: 8.344 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.773e-05/0.5751, allocations: 7.906 kB / 0.5311 GB, free: 8.336 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002216/0.5753, allocations: 175 kB / 0.5313 GB, free: 8.125 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.465e-05/0.5754, allocations: 4 kB / 0.5313 GB, free: 8.121 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.304e-05/0.5755, allocations: 8 kB / 0.5313 GB, free: 8.113 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007696/0.5763, allocations: 95.52 kB / 0.5314 GB, free: 8.016 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.5763, allocations: 0 / 0.5314 GB, free: 8.016 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.106e-05/0.5764, allocations: 0 / 0.5314 GB, free: 8.016 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.5764, allocations: 7.953 kB / 0.5314 GB, free: 8.008 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006429/0.5771, allocations: 51.97 kB / 0.5315 GB, free: 7.957 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001555/0.5787, allocations: 324.7 kB / 0.5318 GB, free: 7.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003878/0.5791, allocations: 90.53 kB / 0.5319 GB, free: 7.492 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.246e-05/0.5792, allocations: 3.938 kB / 0.5319 GB, free: 7.488 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003244/0.5795, allocations: 107.4 kB / 0.532 GB, free: 7.371 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 3.106e-06/0.5795, allocations: 0 / 0.532 GB, free: 7.371 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007009/0.5802, allocations: 190.3 kB / 0.5322 GB, free: 7.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.488e-05/0.5803, allocations: 59.34 kB / 0.5322 GB, free: 7.109 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.5804, allocations: 117.1 kB / 0.5323 GB, free: 6.984 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.524e-05/0.5805, allocations: 33.69 kB / 0.5324 GB, free: 6.945 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.299e-05/0.5805, allocations: 88.42 kB / 0.5324 GB, free: 6.852 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.858e-05/0.5806, allocations: 39.53 kB / 0.5325 GB, free: 6.812 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.064e-05/0.5806, allocations: 0 / 0.5325 GB, free: 6.812 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.5808, allocations: 326.8 kB / 0.5328 GB, free: 6.484 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.5809, allocations: 32.36 kB / 0.5328 GB, free: 6.453 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001987/0.5811, allocations: 84.53 kB / 0.5329 GB, free: 6.355 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001785/0.5813, allocations: 40 kB / 0.5329 GB, free: 6.316 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.5814, allocations: 4 kB / 0.5329 GB, free: 6.312 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004629/0.5818, allocations: 165.6 kB / 0.5331 GB, free: 6.145 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.5819, allocations: 4 kB / 0.5331 GB, free: 6.141 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.5819, allocations: 7.953 kB / 0.5331 GB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.451e-05/0.5819, allocations: 7.984 kB / 0.5331 GB, free: 6.125 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001938/0.5821, allocations: 19.94 kB / 0.5331 GB, free: 6.105 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.5821, allocations: 8.141 kB / 0.5332 GB, free: 6.098 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.5823, allocations: 11.91 kB / 0.5332 GB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.097e-05/0.5823, allocations: 8 kB / 0.5332 GB, free: 6.078 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001508/0.5825, allocations: 128 kB / 0.5333 GB, free: 5.945 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.979e-05/0.5825, allocations: 7.906 kB / 0.5333 GB, free: 5.938 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.822e-05/0.5826, allocations: 12.48 kB / 0.5333 GB, free: 5.922 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.327e-06/0.5826, allocations: 7.953 kB / 0.5333 GB, free: 5.914 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.5826, allocations: 0 / 0.5333 GB, free: 5.914 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.5826, allocations: 4 kB / 0.5333 GB, free: 5.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008668/0.5835, allocations: 450.8 kB / 0.5338 GB, free: 5.414 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.5835, allocations: 0 / 0.5338 GB, free: 5.414 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.875e-05/0.5836, allocations: 11.95 kB / 0.5338 GB, free: 5.402 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.077e-05/0.5836, allocations: 3.984 kB / 0.5338 GB, free: 5.398 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/0.5837, allocations: 4 kB / 0.5338 GB, free: 5.395 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.5837, allocations: 3.938 kB / 0.5338 GB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.5837, allocations: 4 kB / 0.5338 GB, free: 5.387 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005088/0.5842, allocations: 259.8 kB / 0.534 GB, free: 5.117 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.28e-05/0.5843, allocations: 81.11 kB / 0.5341 GB, free: 5.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.806e-05/0.5843, allocations: 7.953 kB / 0.5341 GB, free: 5.012 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001729/0.5845, allocations: 15.98 kB / 0.5341 GB, free: 4.996 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.923e-05/0.5846, allocations: 11.92 kB / 0.5341 GB, free: 4.984 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.502e-05/0.5846, allocations: 8 kB / 0.5341 GB, free: 4.977 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.789e-05/0.5847, allocations: 91.27 kB / 0.5342 GB, free: 4.887 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.5847, allocations: 0 / 0.5342 GB, free: 4.887 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000364/0.5851, allocations: 23.91 kB / 0.5343 GB, free: 4.863 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0009056/0.586, allocations: 0.7943 MB / 0.535 GB, free: 4.043 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004209/0.5865, allocations: 107.9 kB / 0.5351 GB, free: 3.938 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.5865, allocations: 0 / 0.5351 GB, free: 3.938 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001897/0.5867, allocations: 56.23 kB / 0.5352 GB, free: 3.883 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003157/0.587, allocations: 11.95 kB / 0.5352 GB, free: 3.871 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001863/0.5889, allocations: 1.411 MB / 0.5366 GB, free: 2.391 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.5892, allocations: 0.6965 MB / 0.5373 GB, free: 1.668 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.826e-05/0.5893, allocations: 12.88 kB / 0.5373 GB, free: 1.652 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.559e-05/0.5894, allocations: 27.42 kB / 0.5373 GB, free: 1.625 MB / 378.7 MB Notification: Performance of SimCode: time 1.272e-06/0.5894, allocations: 4 kB / 0.5373 GB, free: 1.621 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02751/0.617, allocations: 1.875 MB / 0.5391 GB, free: 15.8 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003059/0.6173, allocations: 157.8 kB / 0.5393 GB, free: 15.57 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.514/3.131, allocations: 0 / 0.5393 GB, free: 15.57 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat