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.001241/0.001242, allocations: 182.2 kB / 17.02 MB, free: 5.121 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.378/1.378, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0008508/0.0008507, allocations: 88.17 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.000351, allocations: 4 kB / 328.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.249, allocations: 47.58 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08391/0.3329, allocations: 77.3 MB / 453.2 MB, free: 3.355 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002029/0.3332, allocations: 71.97 kB / 453.3 MB, free: 3.285 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00782/0.341, allocations: 2.81 MB / 456.1 MB, free: 480 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.341, allocations: 0 / 456.1 MB, free: 480 kB / 330.7 MB Notification: Performance of Transformations before backend: time 1.529e-05/0.341, allocations: 7.984 kB / 456.1 MB, free: 472 kB / 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.0006767/0.3417, allocations: 0.4887 MB / 456.6 MB, free: 15.93 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.3418, allocations: 19.95 kB / 456.6 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.702e-05/0.3418, allocations: 46.55 kB / 456.7 MB, free: 15.85 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.811e-05/0.3419, allocations: 23.72 kB / 456.7 MB, free: 15.83 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000241/0.3421, allocations: 234.6 kB / 456.9 MB, free: 15.56 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.027e-05/0.3422, allocations: 15.75 kB / 456.9 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.928e-05/0.3422, allocations: 23.95 kB / 456.9 MB, free: 15.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003663/0.3426, allocations: 209.9 kB / 457.1 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.3426, allocations: 3.984 kB / 457.2 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.3426, allocations: 4 kB / 457.2 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.24e-05/0.3427, allocations: 18.3 kB / 457.2 MB, free: 15.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002941/0.343, allocations: 139.9 kB / 457.3 MB, free: 15.13 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009919/0.344, allocations: 0.805 MB / 458.1 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005732/0.3445, allocations: 214.6 kB / 458.3 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.062e-05/0.3446, allocations: 0 / 458.3 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000242/0.3448, allocations: 150.2 kB / 458.5 MB, free: 13.89 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.253e-06/0.3448, allocations: 0 / 458.5 MB, free: 13.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005467/0.3454, allocations: 261.5 kB / 458.7 MB, free: 13.62 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.192e-05/0.3454, allocations: 77.11 kB / 458.8 MB, free: 13.53 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001612/0.3456, allocations: 205.7 kB / 459 MB, free: 13.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.3456, allocations: 33.8 kB / 459 MB, free: 13.29 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.305e-05/0.3457, allocations: 132.5 kB / 459.2 MB, free: 13.15 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.357e-05/0.3458, allocations: 39.53 kB / 459.2 MB, free: 13.11 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.016e-05/0.3458, allocations: 4 kB / 459.2 MB, free: 13.11 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.515e-05/0.3459, allocations: 338.8 kB / 459.5 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001515/0.346, allocations: 67.95 kB / 459.6 MB, free: 12.7 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001789/0.3462, allocations: 146.9 kB / 459.7 MB, free: 12.53 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001798/0.3464, allocations: 79.91 kB / 459.8 MB, free: 12.45 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3464, allocations: 4 kB / 459.8 MB, free: 12.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004385/0.3469, allocations: 253.1 kB / 460.1 MB, free: 12.2 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.3469, allocations: 8.25 kB / 460.1 MB, free: 12.19 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.3469, allocations: 8 kB / 460.1 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.3469, allocations: 0 / 460.1 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.3471, allocations: 39.92 kB / 460.1 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.3471, allocations: 11.97 kB / 460.1 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001758/0.3473, allocations: 39.67 kB / 460.2 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.583e-05/0.3473, allocations: 12 kB / 460.2 MB, free: 12.08 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.0001337/0.3475, allocations: 156 kB / 460.3 MB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.843e-05/0.3475, allocations: 15.81 kB / 460.4 MB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002285/0.3477, allocations: 127 kB / 460.5 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.3478, allocations: 4 kB / 460.5 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3478, allocations: 0 / 460.5 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.3478, allocations: 0 / 460.5 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005651/0.3484, allocations: 494.2 kB / 461 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3484, allocations: 0 / 461 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.3485, allocations: 23.98 kB / 461 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.3485, allocations: 0 / 461 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.3485, allocations: 0 / 461 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.3485, allocations: 4 kB / 461 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3485, allocations: 0 / 461 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004034/0.3489, allocations: 317.8 kB / 461.3 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.807e-05/0.349, allocations: 88.92 kB / 461.4 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.122e-05/0.349, allocations: 8.312 kB / 461.4 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.3492, allocations: 27.97 kB / 461.4 MB, free: 10.72 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.63e-05/0.3493, allocations: 19.97 kB / 461.5 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.3493, allocations: 8 kB / 461.5 MB, free: 10.7 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001046/0.3494, allocations: 148.3 kB / 461.6 MB, free: 10.55 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3494, allocations: 0 / 461.6 MB, free: 10.55 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002833/0.3497, allocations: 51.84 kB / 461.7 MB, free: 10.5 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.0007564/0.3505, allocations: 0.924 MB / 462.6 MB, free: 9.539 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003563/0.3509, allocations: 171.7 kB / 462.7 MB, free: 9.371 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3509, allocations: 0 / 462.7 MB, free: 9.371 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001726/0.351, allocations: 88.39 kB / 462.8 MB, free: 9.285 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002324/0.3513, allocations: 31.88 kB / 462.9 MB, free: 9.254 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/0.3533, allocations: 2.517 MB / 465.4 MB, free: 6.637 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002862/0.3536, allocations: 0.7403 MB / 466.1 MB, free: 5.871 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.3538, allocations: 29.53 kB / 466.1 MB, free: 5.844 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/0.3539, allocations: 63.41 kB / 466.2 MB, free: 5.785 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3539, allocations: 4 kB / 466.2 MB, free: 5.781 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0147/0.3686, allocations: 3.577 MB / 469.8 MB, free: 2.234 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002341/0.3689, allocations: 173 kB / 470 MB, free: 1.988 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.588/1.957, allocations: 4 kB / 470 MB, free: 1.984 MB / 346.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