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.0009582/0.0009583, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 221.5 MB / 230.3 MB, free: 7.516 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.0008104/0.0008107, allocations: 97.95 kB / 281.2 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.764e-05/1.766e-05, allocations: 4 kB / 337.1 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09874/0.09877, allocations: 50.42 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3323/0.4312, allocations: 77.35 MB / 464.9 MB, free: 1.348 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000195/0.4314, allocations: 63.97 kB / 465 MB, free: 1.285 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008389/0.4398, allocations: 2.837 MB / 467.8 MB, free: 14.46 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4398, allocations: 0 / 467.8 MB, free: 14.46 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.548e-05/0.4399, allocations: 4 kB / 467.8 MB, free: 14.45 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.000722/0.4406, allocations: 488.8 kB / 468.3 MB, free: 13.93 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.4406, allocations: 8.031 kB / 468.3 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.498e-05/0.4407, allocations: 27.67 kB / 468.3 MB, free: 13.9 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002664/0.441, allocations: 234.8 kB / 468.5 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.162e-05/0.441, allocations: 12 kB / 468.6 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.072e-05/0.441, allocations: 12 kB / 468.6 MB, free: 13.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002308/0.4413, allocations: 99.97 kB / 468.7 MB, free: 13.51 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002686/0.4416, allocations: 177.9 kB / 468.8 MB, free: 13.31 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.4416, allocations: 0 / 468.8 MB, free: 13.31 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.963e-05/0.4416, allocations: 3.953 kB / 468.8 MB, free: 13.31 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.439e-05/0.4416, allocations: 8 kB / 468.9 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001089/0.4427, allocations: 0.7666 MB / 469.6 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005419/0.4433, allocations: 182.7 kB / 469.8 MB, free: 12.3 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.427e-05/0.4434, allocations: 49.06 kB / 469.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.158e-05/0.4434, allocations: 3.938 kB / 469.8 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002088/0.4436, allocations: 137 kB / 470 MB, free: 12.09 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.4437, allocations: 0 / 470 MB, free: 12.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003338/0.444, allocations: 153.4 kB / 470.1 MB, free: 11.93 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.804e-05/0.4441, allocations: 89.09 kB / 470.2 MB, free: 11.83 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001997/0.4443, allocations: 178.9 kB / 470.4 MB, free: 11.64 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/0.4443, allocations: 33.7 kB / 470.4 MB, free: 11.6 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.624e-05/0.4444, allocations: 136.2 kB / 470.6 MB, free: 11.46 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.544e-05/0.4444, allocations: 31.59 kB / 470.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.055e-05/0.4445, allocations: 3.938 kB / 470.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.4446, allocations: 326.8 kB / 470.9 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.295e-05/0.4447, allocations: 56.73 kB / 471 MB, free: 11.04 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.4448, allocations: 124.4 kB / 471.1 MB, free: 10.89 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001187/0.445, allocations: 63.95 kB / 471.2 MB, free: 10.83 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.445, allocations: 0 / 471.2 MB, free: 10.83 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003243/0.4453, allocations: 201.2 kB / 471.3 MB, free: 10.62 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.4453, allocations: 5.562 kB / 471.4 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.4453, allocations: 4 kB / 471.4 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.4454, allocations: 8.297 kB / 471.4 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001835/0.4456, allocations: 43.86 kB / 471.4 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.4456, allocations: 7.984 kB / 471.4 MB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001666/0.4458, allocations: 35.83 kB / 471.5 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.754e-05/0.4458, allocations: 8 kB / 471.5 MB, free: 10.52 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.000118/0.4459, allocations: 131.1 kB / 471.6 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002533/0.4462, allocations: 149.4 kB / 471.7 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.858e-05/0.4462, allocations: 19.77 kB / 471.8 MB, free: 10.21 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002216/0.4464, allocations: 119.4 kB / 471.9 MB, free: 10.08 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.4465, allocations: 3.984 kB / 471.9 MB, free: 10.08 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.4465, allocations: 0 / 471.9 MB, free: 10.08 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.4465, allocations: 4 kB / 471.9 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005602/0.447, allocations: 438.8 kB / 472.3 MB, free: 9.602 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.4471, allocations: 0 / 472.3 MB, free: 9.602 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001282/0.4472, allocations: 27.88 kB / 472.3 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.4472, allocations: 0 / 472.3 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.4472, allocations: 4 kB / 472.3 MB, free: 9.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.4472, allocations: 4.172 kB / 472.3 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.4473, allocations: 4 kB / 472.3 MB, free: 9.562 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003245/0.4476, allocations: 271.1 kB / 472.6 MB, free: 9.273 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.134e-05/0.4476, allocations: 92.86 kB / 472.7 MB, free: 9.164 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.122e-05/0.4477, allocations: 0 / 472.7 MB, free: 9.164 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001793/0.4479, allocations: 23.97 kB / 472.7 MB, free: 9.141 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.133e-05/0.448, allocations: 24.25 kB / 472.7 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.714e-05/0.448, allocations: 7.984 kB / 472.8 MB, free: 9.109 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.847e-05/0.4481, allocations: 133.5 kB / 472.9 MB, free: 8.98 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.726e-06/0.4481, allocations: 3.938 kB / 472.9 MB, free: 8.977 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003115/0.4484, allocations: 51.77 kB / 472.9 MB, free: 8.926 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.0006828/0.4491, allocations: 0.8817 MB / 473.8 MB, free: 8.012 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002578/0.4494, allocations: 131.9 kB / 473.9 MB, free: 7.883 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.4494, allocations: 0 / 473.9 MB, free: 7.883 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001141/0.4495, allocations: 63.92 kB / 474 MB, free: 7.82 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002587/0.4498, allocations: 25.03 kB / 474 MB, free: 7.797 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000713/0.4505, allocations: 297.3 kB / 474.3 MB, free: 7.465 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003819/0.4509, allocations: 0.736 MB / 475.1 MB, free: 6.699 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001046/0.451, allocations: 33.84 kB / 475.1 MB, free: 6.668 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.4511, allocations: 63.41 kB / 475.2 MB, free: 6.605 MB / 346.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4511, allocations: 0 / 475.2 MB, free: 6.605 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02236/0.4735, allocations: 3.137 MB / 478.3 MB, free: 3.5 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001987/0.4737, allocations: 130 kB / 478.4 MB, free: 3.305 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.614/2.088, allocations: 0 / 478.4 MB, free: 3.305 MB / 346.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