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.001488/0.001487, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.955/1.955, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001111/0.00111, allocations: 95.23 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006487/0.0006487, allocations: 8 kB / 327 MB, free: 140 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3384/0.3391, allocations: 47.57 MB / 374.6 MB, free: 45.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1266/0.4658, allocations: 77.32 MB / 451.9 MB, free: 3.457 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/0.4661, allocations: 75.97 kB / 452 MB, free: 3.383 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01289/0.479, allocations: 2.809 MB / 454.8 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4791, allocations: 0 / 454.8 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.085e-05/0.4791, allocations: 8 kB / 454.8 MB, free: 0.5586 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.00116/0.4803, allocations: 0.4887 MB / 455.3 MB, free: 24 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.4803, allocations: 11.97 kB / 455.3 MB, free: 12 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001052/0.4805, allocations: 54.55 kB / 455.4 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.367e-05/0.4805, allocations: 23.72 kB / 455.4 MB, free: 15.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003849/0.4809, allocations: 234.6 kB / 455.6 MB, free: 15.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.558e-05/0.481, allocations: 19.69 kB / 455.6 MB, free: 15.64 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.302e-05/0.4811, allocations: 23.95 kB / 455.7 MB, free: 15.61 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006367/0.4817, allocations: 205.9 kB / 455.9 MB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.4817, allocations: 7.938 kB / 455.9 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.163e-05/0.4818, allocations: 8 kB / 455.9 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.385e-05/0.4818, allocations: 10.38 kB / 455.9 MB, free: 15.37 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000614/0.4825, allocations: 135.9 kB / 456 MB, free: 15.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001764/0.4842, allocations: 0.805 MB / 456.8 MB, free: 14.37 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.4853, allocations: 214.6 kB / 457 MB, free: 14.15 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.406e-05/0.4854, allocations: 4 kB / 457.1 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000421/0.4858, allocations: 152.9 kB / 457.2 MB, free: 13.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 3.697e-06/0.4858, allocations: 0 / 457.2 MB, free: 13.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.001062/0.4869, allocations: 253.3 kB / 457.4 MB, free: 13.72 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.824e-05/0.487, allocations: 85.09 kB / 457.5 MB, free: 13.62 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002924/0.4873, allocations: 201.8 kB / 457.7 MB, free: 13.42 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.287e-05/0.4874, allocations: 29.7 kB / 457.8 MB, free: 13.38 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.4875, allocations: 199 kB / 458 MB, free: 13.19 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.7e-05/0.4876, allocations: 39.53 kB / 458 MB, free: 13.15 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.019e-05/0.4876, allocations: 4 kB / 458 MB, free: 13.14 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.4878, allocations: 324.9 kB / 458.3 MB, free: 12.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002785/0.4881, allocations: 63.95 kB / 458.4 MB, free: 12.76 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003435/0.4884, allocations: 146.9 kB / 458.5 MB, free: 12.59 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000318/0.4887, allocations: 86.38 kB / 458.6 MB, free: 12.5 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.4888, allocations: 3.984 kB / 458.6 MB, free: 12.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000776/0.4896, allocations: 245.2 kB / 458.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.342e-05/0.4896, allocations: 4 kB / 458.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.4896, allocations: 4 kB / 458.9 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.459e-05/0.4897, allocations: 7.984 kB / 458.9 MB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003228/0.49, allocations: 35.92 kB / 458.9 MB, free: 12.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.308e-05/0.49, allocations: 4 kB / 458.9 MB, free: 12.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003283/0.4904, allocations: 48.38 kB / 458.9 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-05/0.4904, allocations: 8 kB / 459 MB, free: 12.14 MB / 346.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 () * Number of clocked 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.0002018/0.4906, allocations: 152 kB / 459.1 MB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.232e-05/0.4907, allocations: 19.72 kB / 459.1 MB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003855/0.4911, allocations: 130.9 kB / 459.2 MB, free: 11.83 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/0.4911, allocations: 8 kB / 459.3 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.4911, allocations: 0 / 459.3 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.4911, allocations: 0 / 459.3 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009305/0.4921, allocations: 474.3 kB / 459.7 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.4921, allocations: 3.984 kB / 459.7 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002067/0.4923, allocations: 19.98 kB / 459.7 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.4923, allocations: 4 kB / 459.7 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.366e-05/0.4924, allocations: 8 kB / 459.8 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.4924, allocations: 0 / 459.8 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4924, allocations: 3.938 kB / 459.8 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007083/0.4931, allocations: 309.7 kB / 460.1 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.858e-05/0.4932, allocations: 92.91 kB / 460.2 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.797e-05/0.4933, allocations: 8.312 kB / 460.2 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002862/0.4936, allocations: 19.98 kB / 460.2 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.4937, allocations: 23.97 kB / 460.2 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.112e-05/0.4938, allocations: 11.98 kB / 460.2 MB, free: 10.77 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002942/0.4941, allocations: 148.3 kB / 460.4 MB, free: 10.62 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.4941, allocations: 0 / 460.4 MB, free: 10.62 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006892/0.4948, allocations: 43.95 kB / 460.4 MB, free: 10.58 MB / 346.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) * Number of clocked states: 0 () * 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.001197/0.496, allocations: 0.9278 MB / 461.3 MB, free: 9.613 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006925/0.4967, allocations: 179.9 kB / 461.5 MB, free: 9.438 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.4967, allocations: 0 / 461.5 MB, free: 9.438 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003201/0.4971, allocations: 84.02 kB / 461.6 MB, free: 9.355 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000377/0.4975, allocations: 35.95 kB / 461.6 MB, free: 9.324 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003852/0.5013, allocations: 2.55 MB / 464.2 MB, free: 6.668 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004718/0.5019, allocations: 0.7364 MB / 464.9 MB, free: 5.906 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001862/0.5021, allocations: 67.41 kB / 465 MB, free: 5.844 MB / 346.7 MB Notification: Performance of SimCode: time 8.72e-07/0.5021, allocations: 0 / 465 MB, free: 5.844 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.574/3.076, allocations: 3.154 MB / 468.1 MB, free: 2.695 MB / 346.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