Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 173.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 221.5 MB / 230.7 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008497/0.0008497, allocations: 94.05 kB / 281.6 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2054/0.2054, allocations: 44.15 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.938e-05/1.94e-05, allocations: 4.219 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.141, allocations: 61.92 MB / 0.4948 GB, free: 1.156 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4449/0.5859, allocations: 86.06 MB / 0.5788 GB, free: 10.31 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001882/0.5862, allocations: 63.97 kB / 0.5789 GB, free: 10.25 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004518/0.5907, allocations: 1.511 MB / 0.5803 GB, free: 8.738 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5908, allocations: 4 kB / 0.5803 GB, free: 8.734 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.5908, allocations: 4 kB / 0.5804 GB, free: 8.73 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.0005072/0.5913, allocations: 382.2 kB / 0.5807 GB, free: 8.312 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.5913, allocations: 15.97 kB / 0.5807 GB, free: 8.297 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.086e-05/0.5914, allocations: 7.906 kB / 0.5807 GB, free: 8.289 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001537/0.5916, allocations: 175 kB / 0.5809 GB, free: 8.078 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.963e-05/0.5916, allocations: 0 / 0.5809 GB, free: 8.078 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.089e-05/0.5916, allocations: 7.953 kB / 0.5809 GB, free: 8.07 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001037/0.5917, allocations: 41.86 kB / 0.581 GB, free: 8.031 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001288/0.5919, allocations: 67.17 kB / 0.581 GB, free: 7.961 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.5919, allocations: 3.984 kB / 0.581 GB, free: 7.957 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.763e-05/0.5919, allocations: 4 kB / 0.581 GB, free: 7.953 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.5919, allocations: 0 / 0.581 GB, free: 7.953 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005534/0.5925, allocations: 313.1 kB / 0.5813 GB, free: 7.613 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001463/0.5926, allocations: 74.58 kB / 0.5814 GB, free: 7.531 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.283e-05/0.5927, allocations: 36.8 kB / 0.5814 GB, free: 7.492 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/0.5927, allocations: 7.984 kB / 0.5814 GB, free: 7.484 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001611/0.5929, allocations: 79.39 kB / 0.5815 GB, free: 7.395 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.583e-06/0.5929, allocations: 0 / 0.5815 GB, free: 7.395 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002899/0.5932, allocations: 137.7 kB / 0.5816 GB, free: 7.254 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.5932, allocations: 55.41 kB / 0.5817 GB, free: 7.188 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.5934, allocations: 106 kB / 0.5818 GB, free: 7.074 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.5934, allocations: 33.7 kB / 0.5818 GB, free: 7.035 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.008e-05/0.5935, allocations: 84.8 kB / 0.5819 GB, free: 6.945 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.894e-05/0.5935, allocations: 35.55 kB / 0.5819 GB, free: 6.91 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.905e-06/0.5935, allocations: 4 kB / 0.5819 GB, free: 6.906 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.5937, allocations: 326.8 kB / 0.5823 GB, free: 6.578 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.249e-05/0.5937, allocations: 28.31 kB / 0.5823 GB, free: 6.551 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.28e-05/0.5938, allocations: 69.7 kB / 0.5824 GB, free: 6.465 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.836e-05/0.5939, allocations: 35.98 kB / 0.5824 GB, free: 6.43 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.5939, allocations: 0 / 0.5824 GB, free: 6.43 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001989/0.5941, allocations: 136.3 kB / 0.5825 GB, free: 6.293 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.5941, allocations: 4 kB / 0.5825 GB, free: 6.289 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.892e-05/0.5942, allocations: 4 kB / 0.5825 GB, free: 6.285 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.5942, allocations: 0 / 0.5825 GB, free: 6.285 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.5943, allocations: 23.98 kB / 0.5825 GB, free: 6.262 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.5943, allocations: 7.938 kB / 0.5826 GB, free: 6.254 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.935e-05/0.5944, allocations: 8.156 kB / 0.5826 GB, free: 6.246 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.5944, allocations: 4.562 kB / 0.5826 GB, free: 6.242 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 9.606e-05/0.5945, allocations: 115.2 kB / 0.5827 GB, free: 6.121 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002017/0.5947, allocations: 134.2 kB / 0.5828 GB, free: 5.984 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.645e-05/0.5948, allocations: 11.91 kB / 0.5828 GB, free: 5.973 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.764e-05/0.5948, allocations: 12.73 kB / 0.5828 GB, free: 5.953 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.5948, allocations: 224 / 0.5828 GB, free: 5.953 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.5948, allocations: 4 kB / 0.5828 GB, free: 5.949 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.5948, allocations: 3.938 kB / 0.5828 GB, free: 5.945 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004387/0.5953, allocations: 417.1 kB / 0.5832 GB, free: 5.496 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.5953, allocations: 0 / 0.5832 GB, free: 5.496 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.813e-05/0.5954, allocations: 8 kB / 0.5832 GB, free: 5.488 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.5954, allocations: 0 / 0.5832 GB, free: 5.488 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.5954, allocations: 3.984 kB / 0.5832 GB, free: 5.484 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.5954, allocations: 0 / 0.5832 GB, free: 5.484 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.5954, allocations: 0 / 0.5832 GB, free: 5.484 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002563/0.5957, allocations: 239.4 kB / 0.5835 GB, free: 5.234 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.075e-05/0.5957, allocations: 89 kB / 0.5836 GB, free: 5.129 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.347e-05/0.5958, allocations: 0 / 0.5836 GB, free: 5.129 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.5959, allocations: 11.98 kB / 0.5836 GB, free: 5.117 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.651e-05/0.5959, allocations: 7.984 kB / 0.5836 GB, free: 5.109 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.5959, allocations: 8 kB / 0.5836 GB, free: 5.102 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.482e-05/0.596, allocations: 91.22 kB / 0.5837 GB, free: 5.012 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.596, allocations: 4.281 kB / 0.5837 GB, free: 5.008 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002399/0.5963, allocations: 19.98 kB / 0.5837 GB, free: 4.988 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.0005638/0.5968, allocations: 0.7609 MB / 0.5844 GB, free: 4.203 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001792/0.597, allocations: 91.86 kB / 0.5845 GB, free: 4.113 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.597, allocations: 4.312 kB / 0.5845 GB, free: 4.109 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 7.548e-05/0.5971, allocations: 40 kB / 0.5846 GB, free: 4.07 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002157/0.5973, allocations: 7.5 kB / 0.5846 GB, free: 4.066 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004969/0.5978, allocations: 158.2 kB / 0.5847 GB, free: 3.871 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003406/0.5982, allocations: 0.7001 MB / 0.5854 GB, free: 3.145 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 4.504e-05/0.5982, allocations: 8.875 kB / 0.5854 GB, free: 3.137 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.598e-05/0.5983, allocations: 31.42 kB / 0.5855 GB, free: 3.105 MB / 394.7 MB Notification: Performance of SimCode: time 3e-07/0.5983, allocations: 0 / 0.5855 GB, free: 3.105 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02097/0.6193, allocations: 1.558 MB / 0.587 GB, free: 1.559 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000212/0.6196, allocations: 130.9 kB / 0.5871 GB, free: 1.359 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.461/2.081, allocations: 0 / 0.5871 GB, free: 1.359 MB / 394.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat