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.001594/0.001594, allocations: 179 kB / 16.38 MB, free: 5.727 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.326/1.326, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009119/0.0009184, allocations: 90.03 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002766/0.0002764, allocations: 4 kB / 351.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2265, allocations: 50.4 MB / 401.6 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09706/0.3236, allocations: 78.08 MB / 479.7 MB, free: 2.406 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001902/0.3238, allocations: 67.95 kB / 479.7 MB, free: 2.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008292/0.3321, allocations: 2.876 MB / 482.6 MB, free: 15.46 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3321, allocations: 0 / 482.6 MB, free: 15.46 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.434e-05/0.3322, allocations: 4 kB / 482.6 MB, free: 15.45 MB / 362.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.000774/0.3329, allocations: 0.4926 MB / 483.1 MB, free: 14.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.333, allocations: 12.02 kB / 483.1 MB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.887e-05/0.3331, allocations: 58.44 kB / 483.2 MB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.582e-05/0.3331, allocations: 19.72 kB / 483.2 MB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002752/0.3334, allocations: 238.5 kB / 483.4 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.3334, allocations: 12 kB / 483.4 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.785e-05/0.3335, allocations: 16 kB / 483.4 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003944/0.3339, allocations: 205.5 kB / 483.6 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.3339, allocations: 3.938 kB / 483.6 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.162e-05/0.3339, allocations: 8 kB / 483.7 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.466e-05/0.334, allocations: 15.94 kB / 483.7 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003321/0.3343, allocations: 147.8 kB / 483.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001102/0.3354, allocations: 0.7858 MB / 484.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006085/0.336, allocations: 210.6 kB / 484.8 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.675e-05/0.3361, allocations: 4 kB / 484.8 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002852/0.3364, allocations: 160.3 kB / 485 MB, free: 12.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 3.126e-06/0.3364, allocations: 0 / 485 MB, free: 12.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005824/0.337, allocations: 257.2 kB / 485.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.726e-05/0.337, allocations: 81.11 kB / 485.3 MB, free: 12.53 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001861/0.3372, allocations: 202 kB / 485.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.3373, allocations: 25.7 kB / 485.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.584e-05/0.3374, allocations: 136.3 kB / 485.6 MB, free: 12.15 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.634e-05/0.3374, allocations: 35.53 kB / 485.7 MB, free: 12.12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.298e-05/0.3374, allocations: 8 kB / 485.7 MB, free: 12.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.3376, allocations: 334.8 kB / 486 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.3377, allocations: 67.95 kB / 486.1 MB, free: 11.71 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001957/0.3379, allocations: 140.5 kB / 486.2 MB, free: 11.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001686/0.3381, allocations: 87.91 kB / 486.3 MB, free: 11.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3381, allocations: 0 / 486.3 MB, free: 11.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004365/0.3386, allocations: 249.2 kB / 486.6 MB, free: 11.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.3386, allocations: 8.203 kB / 486.6 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.3386, allocations: 8 kB / 486.6 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.3386, allocations: 4.375 kB / 486.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001697/0.3388, allocations: 35.92 kB / 486.6 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.3388, allocations: 7.984 kB / 486.6 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001764/0.339, allocations: 39.73 kB / 486.7 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.564e-05/0.339, allocations: 12.25 kB / 486.7 MB, free: 11.09 MB / 362.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.0001442/0.3392, allocations: 152 kB / 486.8 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.777e-05/0.3392, allocations: 15.81 kB / 486.8 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002662/0.3395, allocations: 138.9 kB / 487 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3395, allocations: 0 / 487 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3395, allocations: 0 / 487 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.3395, allocations: 4 kB / 487 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005907/0.3401, allocations: 482.3 kB / 487.4 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3401, allocations: 0 / 487.4 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.3403, allocations: 23.94 kB / 487.5 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.3403, allocations: 0 / 487.5 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.3403, allocations: 11.94 kB / 487.5 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.3403, allocations: 0 / 487.5 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.3403, allocations: 3.938 kB / 487.5 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004173/0.3407, allocations: 309.7 kB / 487.8 MB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.418e-05/0.3408, allocations: 92.92 kB / 487.9 MB, free: 9.766 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.962e-05/0.3408, allocations: 8 kB / 487.9 MB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001719/0.341, allocations: 23.97 kB / 487.9 MB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.785e-05/0.3411, allocations: 19.97 kB / 487.9 MB, free: 9.715 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.73e-05/0.3411, allocations: 4 kB / 487.9 MB, free: 9.711 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000113/0.3413, allocations: 144.6 kB / 488.1 MB, free: 9.57 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3413, allocations: 3.938 kB / 488.1 MB, free: 9.566 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002998/0.3416, allocations: 47.89 kB / 488.1 MB, free: 9.52 MB / 362.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.0007964/0.3424, allocations: 0.9284 MB / 489 MB, free: 8.559 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003797/0.3428, allocations: 168 kB / 489.2 MB, free: 8.395 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3428, allocations: 4.438 kB / 489.2 MB, free: 8.391 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000182/0.343, allocations: 83.89 kB / 489.3 MB, free: 8.309 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002682/0.3432, allocations: 28.3 kB / 489.3 MB, free: 8.281 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00231/0.3456, allocations: 2.535 MB / 491.9 MB, free: 5.648 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.3459, allocations: 0.7403 MB / 492.6 MB, free: 4.883 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001098/0.346, allocations: 33.52 kB / 492.6 MB, free: 4.852 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.3461, allocations: 67.41 kB / 492.7 MB, free: 4.789 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3461, allocations: 0 / 492.7 MB, free: 4.789 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01475/0.3609, allocations: 3.586 MB / 496.3 MB, free: 1.328 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001822/0.3611, allocations: 172.2 kB / 496.5 MB, free: 1.086 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.719/2.08, allocations: 3.938 kB / 496.5 MB, free: 1.082 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