Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001123/0.001123, allocations: 183.1 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.764/1.764, allocations: 205.2 MB / 218.9 MB, free: 9.203 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001082/0.001082, allocations: 91.11 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4141/0.4141, allocations: 43.47 MB / 358.6 MB, free: 51.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.592e-05/3.615e-05, allocations: 4 kB / 425.4 MB, free: 8.102 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1327, allocations: 58.84 MB / 484.2 MB, free: 13.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4291/0.5618, allocations: 85.63 MB / 0.5565 GB, free: 17.84 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/0.5621, allocations: 69.06 kB / 0.5566 GB, free: 17.82 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004093/0.5662, allocations: 1.482 MB / 0.558 GB, free: 16.86 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5662, allocations: 0 / 0.558 GB, free: 16.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.625e-06/0.5663, allocations: 4 kB / 0.558 GB, free: 16.86 MB / 394.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.0004401/0.5667, allocations: 388 kB / 0.5584 GB, free: 16.46 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.5668, allocations: 8.031 kB / 0.5584 GB, free: 16.45 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.786e-05/0.5668, allocations: 39.77 kB / 0.5584 GB, free: 16.41 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.387e-05/0.5669, allocations: 12.52 kB / 0.5585 GB, free: 16.4 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001059/0.567, allocations: 164.4 kB / 0.5586 GB, free: 16.2 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.567, allocations: 6.812 kB / 0.5586 GB, free: 16.2 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.289e-05/0.567, allocations: 12.89 kB / 0.5586 GB, free: 16.19 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001625/0.5672, allocations: 81.73 kB / 0.5587 GB, free: 16.12 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.5672, allocations: 1.547 kB / 0.5587 GB, free: 16.12 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.5672, allocations: 6.5 kB / 0.5587 GB, free: 16.12 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.5672, allocations: 0 / 0.5587 GB, free: 16.12 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.892e-05/0.5673, allocations: 34.34 kB / 0.5588 GB, free: 16.1 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005362/0.5679, allocations: 339.6 kB / 0.5591 GB, free: 15.78 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001548/0.568, allocations: 87.53 kB / 0.5592 GB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.072e-05/0.5681, allocations: 39.05 kB / 0.5592 GB, free: 15.69 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.5681, allocations: 0 / 0.5592 GB, free: 15.69 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001652/0.5683, allocations: 89.88 kB / 0.5593 GB, free: 15.61 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.213e-06/0.5683, allocations: 0 / 0.5593 GB, free: 15.61 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.000293/0.5686, allocations: 151.4 kB / 0.5594 GB, free: 15.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.5687, allocations: 60.7 kB / 0.5595 GB, free: 15.43 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.162e-05/0.5688, allocations: 109.3 kB / 0.5596 GB, free: 15.32 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.5688, allocations: 34.47 kB / 0.5596 GB, free: 15.29 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.94e-05/0.5688, allocations: 88.94 kB / 0.5597 GB, free: 15.2 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.695e-05/0.5689, allocations: 41.62 kB / 0.5597 GB, free: 15.17 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.56e-06/0.5689, allocations: 0 / 0.5597 GB, free: 15.17 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.602e-05/0.569, allocations: 319.3 kB / 0.5601 GB, free: 14.86 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.371e-05/0.569, allocations: 35.34 kB / 0.5601 GB, free: 14.83 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.584e-05/0.5691, allocations: 68.39 kB / 0.5602 GB, free: 14.76 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.258e-05/0.5692, allocations: 33.69 kB / 0.5602 GB, free: 14.74 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.5692, allocations: 8 kB / 0.5602 GB, free: 14.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002113/0.5694, allocations: 152.7 kB / 0.5603 GB, free: 14.62 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.5695, allocations: 4 kB / 0.5603 GB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.5695, allocations: 0 / 0.5603 GB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.5695, allocations: 7.938 kB / 0.5604 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.5696, allocations: 22.88 kB / 0.5604 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.654e-05/0.5697, allocations: 9.312 kB / 0.5604 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.223e-05/0.5697, allocations: 11.84 kB / 0.5604 GB, free: 14.58 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/0.5698, allocations: 4 kB / 0.5604 GB, free: 14.57 MB / 394.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 () * 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 8.662e-05/0.5698, allocations: 123.2 kB / 0.5605 GB, free: 14.45 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.759e-05/0.5699, allocations: 8.938 kB / 0.5605 GB, free: 14.45 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.607e-05/0.5699, allocations: 9.391 kB / 0.5605 GB, free: 14.45 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.5699, allocations: 4 kB / 0.5605 GB, free: 14.44 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.5699, allocations: 0 / 0.5605 GB, free: 14.44 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.5699, allocations: 5.391 kB / 0.5605 GB, free: 14.44 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004067/0.5704, allocations: 441.3 kB / 0.561 GB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.5704, allocations: 0 / 0.561 GB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.726e-05/0.5704, allocations: 6.578 kB / 0.561 GB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.5704, allocations: 4.844 kB / 0.561 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.5705, allocations: 5.078 kB / 0.561 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.5705, allocations: 3.953 kB / 0.561 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.5705, allocations: 0 / 0.561 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002222/0.5707, allocations: 245.2 kB / 0.5612 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.71e-05/0.5707, allocations: 85.02 kB / 0.5613 GB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.493e-05/0.5708, allocations: 5.641 kB / 0.5613 GB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.5709, allocations: 9.688 kB / 0.5613 GB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.631e-05/0.5709, allocations: 12.64 kB / 0.5613 GB, free: 13.69 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.571, allocations: 8.688 kB / 0.5613 GB, free: 13.68 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.66e-05/0.571, allocations: 92.19 kB / 0.5614 GB, free: 13.6 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.571, allocations: 0 / 0.5614 GB, free: 13.6 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002267/0.5712, allocations: 21.09 kB / 0.5614 GB, free: 13.58 MB / 394.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) * 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.0003936/0.5716, allocations: 0.7818 MB / 0.5622 GB, free: 12.82 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001765/0.5718, allocations: 94.22 kB / 0.5623 GB, free: 12.75 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.5718, allocations: 0 / 0.5623 GB, free: 12.75 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 7.803e-05/0.5719, allocations: 46.89 kB / 0.5623 GB, free: 12.72 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001909/0.5721, allocations: 24.55 kB / 0.5624 GB, free: 12.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004356/0.5726, allocations: 169.2 kB / 0.5625 GB, free: 12.54 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001279/0.5727, allocations: 0.6984 MB / 0.5632 GB, free: 11.82 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 3.99e-05/0.5728, allocations: 7.891 kB / 0.5632 GB, free: 11.82 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.509e-05/0.5728, allocations: 27.75 kB / 0.5632 GB, free: 11.8 MB / 394.7 MB Notification: Performance of SimCode: time 2.2e-07/0.5728, allocations: 0 / 0.5632 GB, free: 11.8 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01262/0.5854, allocations: 1.876 MB / 0.5651 GB, free: 10.68 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001713/0.5857, allocations: 145 kB / 0.5652 GB, free: 10.45 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.58/2.166, allocations: 3.938 kB / 0.5652 GB, free: 10.45 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat