Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001734/0.001734, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009255/0.0009251, allocations: 95.03 kB / 292.1 MB, free: 5.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.67e-05/3.686e-05, allocations: 7.984 kB / 350.6 MB, free: 2.469 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1141, allocations: 51.48 MB / 402.1 MB, free: 14.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4355/0.5496, allocations: 78.83 MB / 480.9 MB, free: 10.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002571/0.55, allocations: 64.66 kB / 481 MB, free: 10.63 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009174/0.5592, allocations: 2.957 MB / 484 MB, free: 8.152 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.5592, allocations: 0 / 484 MB, free: 8.152 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.991e-05/0.5592, allocations: 8 kB / 484 MB, free: 8.145 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.0007596/0.56, allocations: 481.7 kB / 484.4 MB, free: 7.652 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.5601, allocations: 8.031 kB / 484.4 MB, free: 7.645 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.816e-05/0.5601, allocations: 53.67 kB / 484.5 MB, free: 7.59 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000164/0.5603, allocations: 35.7 kB / 484.5 MB, free: 7.555 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002872/0.5606, allocations: 230.5 kB / 484.8 MB, free: 7.301 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.606e-05/0.5606, allocations: 15.69 kB / 484.8 MB, free: 7.293 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.328e-05/0.5607, allocations: 15.25 kB / 484.8 MB, free: 7.281 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003524/0.561, allocations: 196.8 kB / 485 MB, free: 7.117 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.5611, allocations: 7.938 kB / 485 MB, free: 7.109 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.473e-05/0.5611, allocations: 8.375 kB / 485 MB, free: 7.105 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.034e-05/0.5611, allocations: 8 kB / 485 MB, free: 7.098 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002257/0.5614, allocations: 108.6 kB / 485.1 MB, free: 7.023 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001203/0.5626, allocations: 0.8061 MB / 485.9 MB, free: 6.234 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005597/0.5632, allocations: 193.4 kB / 486.1 MB, free: 6.07 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.177e-05/0.5633, allocations: 50.42 kB / 486.2 MB, free: 6.031 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.584e-05/0.5633, allocations: 3.625 kB / 486.2 MB, free: 6.031 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002158/0.5635, allocations: 146.1 kB / 486.3 MB, free: 5.891 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.483e-06/0.5635, allocations: 0 / 486.3 MB, free: 5.891 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003594/0.5639, allocations: 163.8 kB / 486.5 MB, free: 5.754 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.579e-05/0.564, allocations: 84.17 kB / 486.5 MB, free: 5.656 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001879/0.5642, allocations: 190.1 kB / 486.7 MB, free: 5.492 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.33e-05/0.5642, allocations: 28.77 kB / 486.8 MB, free: 5.461 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.5643, allocations: 147.2 kB / 486.9 MB, free: 5.336 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.621e-05/0.5644, allocations: 30.81 kB / 486.9 MB, free: 5.309 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.293e-05/0.5644, allocations: 9.469 kB / 486.9 MB, free: 5.305 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.5645, allocations: 337 kB / 487.3 MB, free: 4.977 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/0.5646, allocations: 52.42 kB / 487.3 MB, free: 4.941 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001195/0.5647, allocations: 121.8 kB / 487.4 MB, free: 4.812 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001189/0.5649, allocations: 70.11 kB / 487.5 MB, free: 4.762 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.5649, allocations: 0 / 487.5 MB, free: 4.762 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003409/0.5652, allocations: 224.8 kB / 487.7 MB, free: 4.582 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.5652, allocations: 13.7 kB / 487.7 MB, free: 4.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.5653, allocations: 0 / 487.7 MB, free: 4.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.218e-05/0.5653, allocations: 4 kB / 487.7 MB, free: 4.566 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.5655, allocations: 43.86 kB / 487.8 MB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/0.5655, allocations: 3.938 kB / 487.8 MB, free: 4.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001872/0.5657, allocations: 42.12 kB / 487.8 MB, free: 4.484 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.926e-05/0.5657, allocations: 11.5 kB / 487.8 MB, free: 4.477 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 9.692e-05/0.5658, allocations: 128.8 kB / 488 MB, free: 4.348 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.902e-05/0.5659, allocations: 19.81 kB / 488 MB, free: 4.328 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002461/0.5661, allocations: 124.6 kB / 488.1 MB, free: 4.234 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.5661, allocations: 11.94 kB / 488.1 MB, free: 4.223 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.5661, allocations: 0 / 488.1 MB, free: 4.223 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.5662, allocations: 3.984 kB / 488.1 MB, free: 4.219 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000584/0.5667, allocations: 491.9 kB / 488.6 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.5668, allocations: 0 / 488.6 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001171/0.5669, allocations: 19.98 kB / 488.6 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.5669, allocations: 4 kB / 488.6 MB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.078e-05/0.5669, allocations: 6.938 kB / 488.6 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.5669, allocations: 0.5469 kB / 488.6 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.5669, allocations: 0 / 488.6 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002758/0.5672, allocations: 280.7 kB / 488.9 MB, free: 3.445 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.934e-05/0.5673, allocations: 92.83 kB / 489 MB, free: 3.336 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.387e-05/0.5673, allocations: 13.31 kB / 489 MB, free: 3.328 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/0.5675, allocations: 23.97 kB / 489 MB, free: 3.305 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.878e-05/0.5676, allocations: 22.28 kB / 489.1 MB, free: 3.289 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.932e-05/0.5676, allocations: 4 kB / 489.1 MB, free: 3.285 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001092/0.5677, allocations: 151.1 kB / 489.2 MB, free: 3.156 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5678, allocations: 0 / 489.2 MB, free: 3.156 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000312/0.5681, allocations: 50.75 kB / 489.3 MB, free: 3.113 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.0006808/0.5688, allocations: 0.887 MB / 490.2 MB, free: 2.227 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003029/0.5691, allocations: 152.6 kB / 490.3 MB, free: 2.113 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.5691, allocations: 3.938 kB / 490.3 MB, free: 2.109 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001257/0.5692, allocations: 68.92 kB / 490.4 MB, free: 2.059 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002568/0.5695, allocations: 26.56 kB / 490.4 MB, free: 2.039 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007205/0.5702, allocations: 304.8 kB / 490.7 MB, free: 1.746 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002683/0.5705, allocations: 0.7368 MB / 491.4 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001254/0.5706, allocations: 33.52 kB / 491.5 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.5708, allocations: 67.16 kB / 491.5 MB, free: 0.918 MB / 346.7 MB Notification: Performance of SimCode: time 1.372e-06/0.5708, allocations: 4 kB / 491.5 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01861/0.5894, allocations: 3.578 MB / 495.1 MB, free: 13.56 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001847/0.5896, allocations: 152.8 kB / 495.3 MB, free: 13.33 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.767/2.357, allocations: 0 / 495.3 MB, free: 13.33 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat does not exist to compare? outputFormat=mat