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.001578/0.001579, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.03/2.03, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001106/0.001105, allocations: 98.66 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.385e-05/2.38e-05, allocations: 4 kB / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3298, allocations: 47.55 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1197/0.4496, allocations: 76.57 MB / 439 MB, free: 9.652 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002398/0.4499, allocations: 66.66 kB / 439 MB, free: 9.59 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01292/0.4628, allocations: 2.775 MB / 441.8 MB, free: 6.848 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4629, allocations: 0 / 441.8 MB, free: 6.848 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.289e-05/0.4629, allocations: 5.938 kB / 441.8 MB, free: 6.844 MB / 331.1 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.001056/0.464, allocations: 499 kB / 442.3 MB, free: 6.316 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.4641, allocations: 8.031 kB / 442.3 MB, free: 6.309 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.974e-05/0.4642, allocations: 23.72 kB / 442.3 MB, free: 6.285 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003739/0.4645, allocations: 227.5 kB / 442.6 MB, free: 6.023 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.511e-05/0.4646, allocations: 4 kB / 442.6 MB, free: 6.02 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.279e-05/0.4646, allocations: 11.95 kB / 442.6 MB, free: 6.008 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003496/0.465, allocations: 108.8 kB / 442.7 MB, free: 5.902 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004018/0.4654, allocations: 176.7 kB / 442.9 MB, free: 5.711 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.4654, allocations: 0 / 442.9 MB, free: 5.711 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.38e-05/0.4655, allocations: 0 / 442.9 MB, free: 5.711 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.342e-05/0.4655, allocations: 12.06 kB / 442.9 MB, free: 5.703 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001624/0.4672, allocations: 0.7666 MB / 443.6 MB, free: 4.887 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008644/0.4681, allocations: 182.7 kB / 443.8 MB, free: 4.699 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001378/0.4682, allocations: 48.84 kB / 443.9 MB, free: 4.648 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.685e-05/0.4683, allocations: 4 kB / 443.9 MB, free: 4.645 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002951/0.4686, allocations: 140.7 kB / 444 MB, free: 4.496 MB / 331.1 MB Notification: Performance of pre-optimization done (n=15): time 2.364e-06/0.4686, allocations: 0 / 444 MB, free: 4.496 MB / 331.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005012/0.4691, allocations: 153.4 kB / 444.2 MB, free: 4.34 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.713e-05/0.4692, allocations: 81.09 kB / 444.2 MB, free: 4.242 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002483/0.4694, allocations: 183.1 kB / 444.4 MB, free: 4.051 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.204e-05/0.4695, allocations: 34.95 kB / 444.5 MB, free: 4.012 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.4696, allocations: 198.7 kB / 444.6 MB, free: 3.812 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.981e-05/0.4697, allocations: 31.61 kB / 444.7 MB, free: 3.781 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.469e-05/0.4697, allocations: 0 / 444.7 MB, free: 3.781 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.4699, allocations: 322.8 kB / 445 MB, free: 3.457 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.47, allocations: 51.92 kB / 445 MB, free: 3.406 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002007/0.4702, allocations: 118.7 kB / 445.2 MB, free: 3.262 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002043/0.4704, allocations: 60.62 kB / 445.2 MB, free: 3.203 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.4705, allocations: 4 kB / 445.2 MB, free: 3.199 MB / 331.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005176/0.471, allocations: 198.3 kB / 445.4 MB, free: 3 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.471, allocations: 8 kB / 445.4 MB, free: 2.992 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.471, allocations: 0 / 445.4 MB, free: 2.992 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.458e-05/0.4711, allocations: 4 kB / 445.4 MB, free: 2.988 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003579/0.4714, allocations: 48.94 kB / 445.5 MB, free: 2.941 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.4715, allocations: 4 kB / 445.5 MB, free: 2.938 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003047/0.4718, allocations: 36.06 kB / 445.5 MB, free: 2.902 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.404e-05/0.4718, allocations: 8 kB / 445.5 MB, free: 2.895 MB / 331.1 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.0001382/0.472, allocations: 123.2 kB / 445.6 MB, free: 2.766 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004373/0.4724, allocations: 158 kB / 445.8 MB, free: 2.605 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.923e-05/0.4725, allocations: 15.81 kB / 445.8 MB, free: 2.59 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003484/0.4729, allocations: 133.4 kB / 445.9 MB, free: 2.461 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.4729, allocations: 4 kB / 445.9 MB, free: 2.457 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.4729, allocations: 0 / 445.9 MB, free: 2.457 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.391e-06/0.4729, allocations: 0 / 445.9 MB, free: 2.457 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000859/0.4738, allocations: 434.8 kB / 446.4 MB, free: 1.988 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.4738, allocations: 4 kB / 446.4 MB, free: 1.984 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002213/0.474, allocations: 27.91 kB / 446.4 MB, free: 1.957 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.155e-05/0.4741, allocations: 4.875 kB / 446.4 MB, free: 1.953 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.4741, allocations: 0 / 446.4 MB, free: 1.953 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.4741, allocations: 0 / 446.4 MB, free: 1.953 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.4741, allocations: 4 kB / 446.4 MB, free: 1.949 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004617/0.4746, allocations: 261.8 kB / 446.7 MB, free: 1.668 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.264e-05/0.4747, allocations: 96.84 kB / 446.8 MB, free: 1.555 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.73e-05/0.4747, allocations: 10.75 kB / 446.8 MB, free: 1.547 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002966/0.4751, allocations: 19.92 kB / 446.8 MB, free: 1.527 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.4752, allocations: 23.95 kB / 446.8 MB, free: 1.504 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.021e-05/0.4753, allocations: 12 kB / 446.8 MB, free: 1.492 MB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0001507/0.4754, allocations: 124.2 kB / 446.9 MB, free: 1.371 MB / 331.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4754, allocations: 0 / 446.9 MB, free: 1.371 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0004671/0.4759, allocations: 51.78 kB / 447 MB, free: 1.32 MB / 331.1 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.0009252/0.4768, allocations: 0.8756 MB / 447.9 MB, free: 420 kB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0004374/0.4773, allocations: 139.8 kB / 448 MB, free: 280 kB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.4773, allocations: 0 / 448 MB, free: 280 kB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002004/0.4775, allocations: 67.86 kB / 448.1 MB, free: 212 kB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004247/0.478, allocations: 31.7 kB / 448.1 MB, free: 180 kB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.4792, allocations: 318.6 kB / 448.4 MB, free: 15.82 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003663/0.4796, allocations: 0.7399 MB / 449.2 MB, free: 15.05 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001781/0.4797, allocations: 59.42 kB / 449.2 MB, free: 14.99 MB / 347.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4798, allocations: 0 / 449.2 MB, free: 14.99 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.688/3.167, allocations: 3.119 MB / 452.3 MB, free: 11.93 MB / 347.1 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