Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.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) 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(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_IntegerNetwork1",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.002541/0.002541, allocations: 181.5 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.353/2.353, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001084/0.001084, allocations: 86.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.845e-05/3.864e-05, allocations: 4 kB / 321.6 MB, free: 17.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1336, allocations: 47.58 MB / 369.2 MB, free: 2.121 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4169/0.5506, allocations: 77.22 MB / 446.4 MB, free: 15.6 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/0.551, allocations: 68.03 kB / 446.5 MB, free: 15.57 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01418/0.5652, allocations: 2.798 MB / 449.3 MB, free: 13.17 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5653, allocations: 0 / 449.3 MB, free: 13.17 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.344e-05/0.5653, allocations: 4 kB / 449.3 MB, free: 13.16 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001065/0.5664, allocations: 490.5 kB / 449.7 MB, free: 12.66 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.385e-05/0.5664, allocations: 8.031 kB / 449.7 MB, free: 12.65 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.415e-05/0.5665, allocations: 49.61 kB / 449.8 MB, free: 12.6 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.23e-05/0.5666, allocations: 23.72 kB / 449.8 MB, free: 12.57 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003955/0.567, allocations: 228.5 kB / 450 MB, free: 12.32 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.873e-05/0.5671, allocations: 18.88 kB / 450.1 MB, free: 12.31 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.069e-05/0.5671, allocations: 27 kB / 450.1 MB, free: 12.29 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004924/0.5676, allocations: 184.7 kB / 450.3 MB, free: 12.13 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.5677, allocations: 3.984 kB / 450.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.735e-05/0.5677, allocations: 11.36 kB / 450.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.128e-05/0.5678, allocations: 8 kB / 450.3 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003557/0.5681, allocations: 118.3 kB / 450.4 MB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001678/0.5698, allocations: 0.8061 MB / 451.2 MB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008997/0.5707, allocations: 195.2 kB / 451.4 MB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.5709, allocations: 48.28 kB / 451.4 MB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.738e-05/0.571, allocations: 4 kB / 451.5 MB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003112/0.5713, allocations: 139.9 kB / 451.6 MB, free: 10.89 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 3.106e-06/0.5713, allocations: 0 / 451.6 MB, free: 10.89 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.000535/0.5719, allocations: 167.6 kB / 451.8 MB, free: 10.75 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.889e-05/0.572, allocations: 81.11 kB / 451.8 MB, free: 10.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002855/0.5723, allocations: 197.7 kB / 452 MB, free: 10.48 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.974e-05/0.5723, allocations: 33.45 kB / 452.1 MB, free: 10.45 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.5724, allocations: 200.1 kB / 452.3 MB, free: 10.26 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.884e-05/0.5725, allocations: 26.14 kB / 452.3 MB, free: 10.24 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.613e-05/0.5725, allocations: 3.312 kB / 452.3 MB, free: 10.24 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.5727, allocations: 326.5 kB / 452.6 MB, free: 9.918 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001757/0.5729, allocations: 56.23 kB / 452.7 MB, free: 9.879 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002286/0.5731, allocations: 128.4 kB / 452.8 MB, free: 9.746 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001984/0.5733, allocations: 64.59 kB / 452.8 MB, free: 9.699 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.5734, allocations: 3.984 kB / 452.8 MB, free: 9.695 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000555/0.5739, allocations: 220.5 kB / 453.1 MB, free: 9.516 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.574, allocations: 12.25 kB / 453.1 MB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.574, allocations: 0 / 453.1 MB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.574, allocations: 4 kB / 453.1 MB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003499/0.5744, allocations: 43.23 kB / 453.1 MB, free: 9.461 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/0.5744, allocations: 4.078 kB / 453.1 MB, free: 9.457 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003083/0.5747, allocations: 39.14 kB / 453.2 MB, free: 9.422 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.017e-05/0.5748, allocations: 8 kB / 453.2 MB, free: 9.414 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001509/0.5749, allocations: 137.9 kB / 453.3 MB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.813e-05/0.575, allocations: 19.81 kB / 453.3 MB, free: 9.258 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003765/0.5754, allocations: 124.8 kB / 453.4 MB, free: 9.152 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.868e-06/0.5754, allocations: 7.984 kB / 453.5 MB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.5754, allocations: 0 / 453.5 MB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.5754, allocations: 0 / 453.5 MB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009732/0.5764, allocations: 486.3 kB / 453.9 MB, free: 8.668 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.5764, allocations: 0 / 453.9 MB, free: 8.668 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002169/0.5767, allocations: 19.98 kB / 454 MB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.5767, allocations: 128 / 454 MB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.75e-05/0.5767, allocations: 11.38 kB / 454 MB, free: 8.641 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.502e-06/0.5767, allocations: 7.922 kB / 454 MB, free: 8.633 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.5768, allocations: 0 / 454 MB, free: 8.633 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004929/0.5773, allocations: 275.5 kB / 454.2 MB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.429e-05/0.5774, allocations: 96.86 kB / 454.3 MB, free: 8.258 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.32e-05/0.5774, allocations: 3.688 kB / 454.3 MB, free: 8.258 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002927/0.5777, allocations: 28.53 kB / 454.4 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.66e-05/0.5778, allocations: 19.66 kB / 454.4 MB, free: 8.215 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.847e-05/0.5779, allocations: 4 kB / 454.4 MB, free: 8.211 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001887/0.5781, allocations: 154.4 kB / 454.5 MB, free: 8.082 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.885e-06/0.5781, allocations: 0 / 454.5 MB, free: 8.082 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000437/0.5785, allocations: 47.41 kB / 454.6 MB, free: 8.039 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0009731/0.5795, allocations: 0.9034 MB / 455.5 MB, free: 7.141 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004753/0.58, allocations: 144.3 kB / 455.6 MB, free: 7.035 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.58, allocations: 0 / 455.6 MB, free: 7.035 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002134/0.5803, allocations: 66.61 kB / 455.7 MB, free: 6.984 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003938/0.5807, allocations: 39.14 kB / 455.7 MB, free: 6.953 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.5818, allocations: 341.5 kB / 456.1 MB, free: 6.617 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004183/0.5822, allocations: 0.7365 MB / 456.8 MB, free: 5.848 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000175/0.5824, allocations: 62.78 kB / 456.9 MB, free: 5.824 MB / 330.7 MB Notification: Performance of SimCode: time 9.32e-07/0.5824, allocations: 0 / 456.9 MB, free: 5.824 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.582/3.165, allocations: 3.155 MB / 460 MB, free: 2.699 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1_res.mat does not exist to compare? outputFormat=mat