Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_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.00107/0.001069, allocations: 171.6 kB / 14.1 MB, free: 1.223 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.437/1.437, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0008054/0.0008052, allocations: 86.69 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.569e-05/2.572e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08204/0.08208, allocations: 47.57 MB / 370.1 MB, free: 1.637 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2891/0.3712, allocations: 77.21 MB / 447.3 MB, free: 60 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001756/0.3714, allocations: 65.09 kB / 447.4 MB, free: 28 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008068/0.3795, allocations: 2.804 MB / 450.2 MB, free: 13.63 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3796, allocations: 0 / 450.2 MB, free: 13.63 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.618e-05/0.3796, allocations: 7.984 kB / 450.2 MB, free: 13.62 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.0006932/0.3803, allocations: 486.6 kB / 450.7 MB, free: 13.12 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.3803, allocations: 11.97 kB / 450.7 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.283e-05/0.3804, allocations: 49.05 kB / 450.7 MB, free: 13.06 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.963e-05/0.3805, allocations: 23.72 kB / 450.8 MB, free: 13.04 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002799/0.3808, allocations: 229.1 kB / 451 MB, free: 12.78 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.3808, allocations: 21.81 kB / 451 MB, free: 12.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.892e-05/0.3808, allocations: 15.14 kB / 451 MB, free: 12.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003132/0.3811, allocations: 195.1 kB / 451.2 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.3812, allocations: 0 / 451.2 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.3812, allocations: 7.312 kB / 451.2 MB, free: 12.58 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.092e-05/0.3812, allocations: 4 kB / 451.2 MB, free: 12.58 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002089/0.3814, allocations: 120.8 kB / 451.3 MB, free: 12.49 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001111/0.3826, allocations: 0.805 MB / 452.1 MB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005716/0.3831, allocations: 195.3 kB / 452.3 MB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.056e-05/0.3832, allocations: 51.41 kB / 452.4 MB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.87e-05/0.3833, allocations: 7.984 kB / 452.4 MB, free: 11.49 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002036/0.3835, allocations: 135.9 kB / 452.5 MB, free: 11.36 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.3835, allocations: 0 / 452.5 MB, free: 11.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003201/0.3838, allocations: 162.5 kB / 452.7 MB, free: 11.22 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.471e-05/0.3839, allocations: 81.33 kB / 452.8 MB, free: 11.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001765/0.3841, allocations: 202.5 kB / 453 MB, free: 10.95 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/0.3841, allocations: 33.33 kB / 453 MB, free: 10.91 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.697e-05/0.3842, allocations: 137.5 kB / 453.1 MB, free: 10.79 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.735e-05/0.3842, allocations: 30.83 kB / 453.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.191e-05/0.3843, allocations: 3.312 kB / 453.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.3844, allocations: 338 kB / 453.5 MB, free: 10.43 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.404e-05/0.3845, allocations: 57.98 kB / 453.5 MB, free: 10.39 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/0.3846, allocations: 123.1 kB / 453.7 MB, free: 10.27 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001134/0.3847, allocations: 65.16 kB / 453.7 MB, free: 10.22 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3847, allocations: 3.938 kB / 453.7 MB, free: 10.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003252/0.3851, allocations: 233 kB / 454 MB, free: 10.02 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.3851, allocations: 4 kB / 454 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.3851, allocations: 8.25 kB / 454 MB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.3851, allocations: 4 kB / 454 MB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001729/0.3853, allocations: 38.52 kB / 454 MB, free: 9.973 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.926e-06/0.3853, allocations: 8.062 kB / 454 MB, free: 9.965 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001694/0.3855, allocations: 42.56 kB / 454.1 MB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.815e-05/0.3855, allocations: 14.11 kB / 454.1 MB, free: 9.914 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 9.873e-05/0.3857, allocations: 133.4 kB / 454.2 MB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.023e-05/0.3857, allocations: 23.55 kB / 454.2 MB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002226/0.3859, allocations: 124.7 kB / 454.3 MB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.3859, allocations: 0 / 454.3 MB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.3859, allocations: 0 / 454.3 MB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.386, allocations: 7.984 kB / 454.4 MB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005644/0.3865, allocations: 483.9 kB / 454.8 MB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3865, allocations: 0 / 454.8 MB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/0.3867, allocations: 23.92 kB / 454.9 MB, free: 9.148 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3867, allocations: 0 / 454.9 MB, free: 9.148 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.3867, allocations: 3.438 kB / 454.9 MB, free: 9.148 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.03e-05/0.3867, allocations: 4 kB / 454.9 MB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3867, allocations: 0 / 454.9 MB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002944/0.387, allocations: 283.7 kB / 455.1 MB, free: 8.875 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.241e-05/0.3871, allocations: 96.77 kB / 455.2 MB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.693e-05/0.3871, allocations: 0 / 455.2 MB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001764/0.3873, allocations: 28.03 kB / 455.3 MB, free: 8.738 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.155e-05/0.3874, allocations: 27.41 kB / 455.3 MB, free: 8.715 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.3874, allocations: 4 kB / 455.3 MB, free: 8.711 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001142/0.3875, allocations: 153.4 kB / 455.4 MB, free: 8.582 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3875, allocations: 0 / 455.4 MB, free: 8.582 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002744/0.3878, allocations: 39.25 kB / 455.5 MB, free: 8.547 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.0006251/0.3884, allocations: 0.9021 MB / 456.4 MB, free: 7.648 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002527/0.3887, allocations: 144.7 kB / 456.5 MB, free: 7.543 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3887, allocations: 3.938 kB / 456.5 MB, free: 7.539 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000125/0.3888, allocations: 69.48 kB / 456.6 MB, free: 7.484 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002388/0.3891, allocations: 37.77 kB / 456.6 MB, free: 7.457 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006582/0.3898, allocations: 308.2 kB / 456.9 MB, free: 7.156 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002755/0.39, allocations: 0.7326 MB / 457.7 MB, free: 6.391 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.3902, allocations: 49.7 kB / 457.7 MB, free: 6.344 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.317e-05/0.3903, allocations: 63.22 kB / 457.8 MB, free: 6.32 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3903, allocations: 0 / 457.8 MB, free: 6.32 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01329/0.4036, allocations: 3.577 MB / 461.4 MB, free: 2.75 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/0.4038, allocations: 141.8 kB / 461.5 MB, free: 2.527 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.543/1.946, allocations: 3.938 kB / 461.5 MB, free: 2.523 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat does not exist to compare? outputFormat=mat