Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.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) 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(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1",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.002124/0.002124, allocations: 174.4 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 221.3 MB / 235.5 MB, free: 2.93 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.0008592/0.0008591, allocations: 91.86 kB / 286.5 MB, free: 220 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.079e-05/3.08e-05, allocations: 4 kB / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1043, allocations: 50.41 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3333/0.4377, allocations: 78.02 MB / 472.3 MB, free: 9.449 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/0.4381, allocations: 63.97 kB / 472.4 MB, free: 9.387 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008844/0.4469, allocations: 2.857 MB / 475.3 MB, free: 6.535 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.447, allocations: 0 / 475.3 MB, free: 6.535 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.504e-05/0.447, allocations: 4 kB / 475.3 MB, free: 6.531 MB / 346.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.0007699/0.4478, allocations: 488.8 kB / 475.7 MB, free: 6.012 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/0.4478, allocations: 8.031 kB / 475.8 MB, free: 6.004 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.404e-05/0.4479, allocations: 50.5 kB / 475.8 MB, free: 5.945 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.546e-05/0.448, allocations: 23.72 kB / 475.8 MB, free: 5.922 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003162/0.4483, allocations: 230.8 kB / 476.1 MB, free: 5.656 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.143e-05/0.4483, allocations: 12 kB / 476.1 MB, free: 5.645 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.324e-05/0.4484, allocations: 16 kB / 476.1 MB, free: 5.629 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003844/0.4488, allocations: 193.5 kB / 476.3 MB, free: 5.418 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.4488, allocations: 0 / 476.3 MB, free: 5.418 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.623e-05/0.4488, allocations: 8 kB / 476.3 MB, free: 5.41 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.257e-05/0.4489, allocations: 15.88 kB / 476.3 MB, free: 5.395 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002385/0.4491, allocations: 115.9 kB / 476.4 MB, free: 5.281 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.4503, allocations: 0.809 MB / 477.2 MB, free: 4.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005857/0.4509, allocations: 198.6 kB / 477.4 MB, free: 4.207 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.4511, allocations: 48.84 kB / 477.5 MB, free: 4.156 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.123e-05/0.4511, allocations: 7.953 kB / 477.5 MB, free: 4.148 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002213/0.4514, allocations: 126.3 kB / 477.6 MB, free: 4.008 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.933e-06/0.4514, allocations: 0 / 477.6 MB, free: 4.008 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003836/0.4518, allocations: 165.4 kB / 477.7 MB, free: 3.84 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.987e-05/0.4518, allocations: 89.09 kB / 477.8 MB, free: 3.734 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001965/0.452, allocations: 193.7 kB / 478 MB, free: 3.531 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.613e-05/0.4521, allocations: 33.7 kB / 478.1 MB, free: 3.492 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.4522, allocations: 136.5 kB / 478.2 MB, free: 3.352 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.254e-05/0.4522, allocations: 31.69 kB / 478.2 MB, free: 3.32 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.103e-05/0.4522, allocations: 4 kB / 478.2 MB, free: 3.316 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.4524, allocations: 331.4 kB / 478.6 MB, free: 2.984 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.4525, allocations: 59.92 kB / 478.6 MB, free: 2.926 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001446/0.4527, allocations: 124.5 kB / 478.7 MB, free: 2.773 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001215/0.4528, allocations: 73.86 kB / 478.8 MB, free: 2.703 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.4528, allocations: 0 / 478.8 MB, free: 2.703 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003347/0.4531, allocations: 225.3 kB / 479 MB, free: 2.477 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.4532, allocations: 7.953 kB / 479 MB, free: 2.469 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.4532, allocations: 8.25 kB / 479 MB, free: 2.461 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.4532, allocations: 8 kB / 479 MB, free: 2.453 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.4534, allocations: 39.91 kB / 479.1 MB, free: 2.414 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.4534, allocations: 4 kB / 479.1 MB, free: 2.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001734/0.4536, allocations: 39.81 kB / 479.1 MB, free: 2.371 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.932e-05/0.4536, allocations: 8 kB / 479.1 MB, free: 2.363 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 () * 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.0001103/0.4537, allocations: 131.1 kB / 479.3 MB, free: 2.227 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.821e-05/0.4538, allocations: 15.81 kB / 479.3 MB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003285/0.4541, allocations: 139.1 kB / 479.4 MB, free: 2.07 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.4541, allocations: 0 / 479.4 MB, free: 2.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.4541, allocations: 4 kB / 479.4 MB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.4542, allocations: 0 / 479.4 MB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000624/0.4548, allocations: 486.2 kB / 479.9 MB, free: 1.535 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.4548, allocations: 3.953 kB / 479.9 MB, free: 1.531 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.4549, allocations: 27.91 kB / 479.9 MB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.808e-06/0.4549, allocations: 0 / 479.9 MB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.455, allocations: 0 / 479.9 MB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.455, allocations: 4 kB / 479.9 MB, free: 1.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.455, allocations: 0 / 479.9 MB, free: 1.5 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003282/0.4553, allocations: 282.5 kB / 480.2 MB, free: 1.199 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.52e-05/0.4554, allocations: 104.8 kB / 480.3 MB, free: 1.078 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.227e-05/0.4554, allocations: 4 kB / 480.3 MB, free: 1.074 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001725/0.4556, allocations: 27.91 kB / 480.3 MB, free: 1.047 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.932e-05/0.4557, allocations: 23.97 kB / 480.4 MB, free: 1.023 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.726e-05/0.4557, allocations: 4 kB / 480.4 MB, free: 1.02 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000111/0.4558, allocations: 144.4 kB / 480.5 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4558, allocations: 0 / 480.5 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002891/0.4561, allocations: 51.94 kB / 480.6 MB, free: 0.8281 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) * 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.0006577/0.4568, allocations: 0.8915 MB / 481.4 MB, free: 15.9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002702/0.4571, allocations: 147.8 kB / 481.6 MB, free: 15.76 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4571, allocations: 4 kB / 481.6 MB, free: 15.75 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001288/0.4572, allocations: 63.92 kB / 481.7 MB, free: 15.69 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002478/0.4575, allocations: 28.86 kB / 481.7 MB, free: 15.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007586/0.4583, allocations: 305.3 kB / 482 MB, free: 15.33 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.4586, allocations: 0.7443 MB / 482.7 MB, free: 14.55 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000102/0.4587, allocations: 33.53 kB / 482.8 MB, free: 14.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001115/0.4588, allocations: 63.41 kB / 482.8 MB, free: 14.46 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4588, allocations: 0 / 482.8 MB, free: 14.46 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0145/0.4733, allocations: 3.58 MB / 486.4 MB, free: 11 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002096/0.4736, allocations: 141.8 kB / 486.5 MB, free: 10.78 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.635/2.108, allocations: 0 / 486.5 MB, free: 10.78 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat does not exist to compare? outputFormat=mat