Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.001612/0.001613, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.04/2.04, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001059/0.001059, allocations: 86.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2954/0.2954, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.265e-05/3.282e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1224, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.513/0.6354, allocations: 85.63 MB / 0.5565 GB, free: 1.863 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001799/0.6357, allocations: 68.98 kB / 0.5566 GB, free: 1.828 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00591/0.6416, allocations: 1.474 MB / 0.558 GB, free: 0.543 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.6416, allocations: 3.938 kB / 0.558 GB, free: 0.5391 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.6416, allocations: 0 / 0.558 GB, free: 0.5391 MB / 362.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.0005551/0.6422, allocations: 389.1 kB / 0.5584 GB, free: 128 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.6423, allocations: 12.03 kB / 0.5584 GB, free: 116 kB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.772e-05/0.6423, allocations: 42.17 kB / 0.5584 GB, free: 68 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.865e-05/0.6424, allocations: 7.906 kB / 0.5584 GB, free: 60 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001652/0.6425, allocations: 167 kB / 0.5586 GB, free: 15.86 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.6426, allocations: 4 kB / 0.5586 GB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.705e-05/0.6426, allocations: 11.56 kB / 0.5586 GB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002272/0.6429, allocations: 83.97 kB / 0.5587 GB, free: 15.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.6429, allocations: 0 / 0.5587 GB, free: 15.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/0.6429, allocations: 0 / 0.5587 GB, free: 15.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.6429, allocations: 7.938 kB / 0.5587 GB, free: 15.76 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001334/0.6431, allocations: 37.8 kB / 0.5587 GB, free: 15.74 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008573/0.6439, allocations: 330.8 kB / 0.5591 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/0.6442, allocations: 86.59 kB / 0.5591 GB, free: 15.32 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.6443, allocations: 35.17 kB / 0.5592 GB, free: 15.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.209e-05/0.6444, allocations: 4 kB / 0.5592 GB, free: 15.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002496/0.6446, allocations: 93.69 kB / 0.5593 GB, free: 15.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.475e-06/0.6447, allocations: 0 / 0.5593 GB, free: 15.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004475/0.6451, allocations: 147.1 kB / 0.5594 GB, free: 15.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.612e-05/0.6452, allocations: 55.41 kB / 0.5595 GB, free: 15.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.6453, allocations: 113 kB / 0.5596 GB, free: 14.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/0.6454, allocations: 28.02 kB / 0.5596 GB, free: 14.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.978e-05/0.6455, allocations: 161.3 kB / 0.5598 GB, free: 14.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.017e-05/0.6455, allocations: 35.22 kB / 0.5598 GB, free: 14.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.295e-05/0.6456, allocations: 4.062 kB / 0.5598 GB, free: 14.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.6457, allocations: 326.1 kB / 0.5601 GB, free: 14.36 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001007/0.6458, allocations: 25.88 kB / 0.5601 GB, free: 14.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.646, allocations: 70.41 kB / 0.5602 GB, free: 14.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000134/0.6461, allocations: 48.22 kB / 0.5602 GB, free: 14.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.6461, allocations: 0 / 0.5602 GB, free: 14.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003465/0.6465, allocations: 146.6 kB / 0.5604 GB, free: 14.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.6465, allocations: 4 kB / 0.5604 GB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.6466, allocations: 0 / 0.5604 GB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.6466, allocations: 4 kB / 0.5604 GB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/0.6468, allocations: 27.92 kB / 0.5604 GB, free: 14.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.6468, allocations: 7.953 kB / 0.5604 GB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.6469, allocations: 11.22 kB / 0.5604 GB, free: 14.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.818e-05/0.647, allocations: 11.41 kB / 0.5604 GB, free: 14.05 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 () * 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.0001275/0.6471, allocations: 127.8 kB / 0.5606 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.869e-05/0.6471, allocations: 7.906 kB / 0.5606 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.335e-05/0.6472, allocations: 11.44 kB / 0.5606 GB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.762e-06/0.6472, allocations: 4 kB / 0.5606 GB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.6472, allocations: 0 / 0.5606 GB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.6472, allocations: 3.953 kB / 0.5606 GB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007487/0.648, allocations: 430.2 kB / 0.561 GB, free: 13.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.648, allocations: 4.219 kB / 0.561 GB, free: 13.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.72e-05/0.6481, allocations: 8 kB / 0.561 GB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.364e-06/0.6482, allocations: 7.938 kB / 0.561 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.977e-05/0.6482, allocations: 7.922 kB / 0.561 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.6482, allocations: 3.953 kB / 0.561 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.6482, allocations: 0 / 0.561 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004096/0.6486, allocations: 234.2 kB / 0.5613 GB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.243e-05/0.6487, allocations: 92.95 kB / 0.5613 GB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.306e-05/0.6487, allocations: 3.438 kB / 0.5613 GB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001681/0.6489, allocations: 11.98 kB / 0.5614 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.881e-05/0.649, allocations: 15.19 kB / 0.5614 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.093e-05/0.649, allocations: 4 kB / 0.5614 GB, free: 13.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.729e-05/0.6491, allocations: 90.52 kB / 0.5615 GB, free: 13 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6491, allocations: 4 kB / 0.5615 GB, free: 13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003294/0.6495, allocations: 19.53 kB / 0.5615 GB, free: 12.98 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) * 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.000736/0.6502, allocations: 0.7871 MB / 0.5623 GB, free: 12.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002876/0.6505, allocations: 88.36 kB / 0.5623 GB, free: 12.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.6505, allocations: 4 kB / 0.5623 GB, free: 12.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001332/0.6507, allocations: 45.44 kB / 0.5624 GB, free: 12.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002634/0.651, allocations: 20.78 kB / 0.5624 GB, free: 12.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006849/0.6517, allocations: 191.9 kB / 0.5626 GB, free: 11.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003552/0.652, allocations: 0.6965 MB / 0.5633 GB, free: 11.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.405e-05/0.6521, allocations: 28.92 kB / 0.5633 GB, free: 11.13 MB / 378.7 MB Notification: Performance of SimCode: time 9.41e-07/0.6522, allocations: 0 / 0.5633 GB, free: 11.13 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.371/3.024, allocations: 1.541 MB / 0.5648 GB, free: 9.605 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat