Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.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.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",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.001417/0.001418, allocations: 176.6 kB / 8.348 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.5/1.5, allocations: 221.5 MB / 230.3 MB, free: 7.57 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.001123/0.001123, allocations: 102 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.266e-05/1.263e-05, allocations: 7.984 kB / 337.1 MB, free: 9.941 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09961/0.09964, allocations: 50.41 MB / 387.5 MB, free: 7.488 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.355/0.4547, allocations: 76.94 MB / 464.5 MB, free: 1.863 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/0.455, allocations: 63.97 kB / 464.5 MB, free: 1.801 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008714/0.4637, allocations: 2.711 MB / 467.3 MB, free: 15.1 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.033e-06/0.4638, allocations: 0 / 467.3 MB, free: 15.1 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.559e-05/0.4638, allocations: 4 kB / 467.3 MB, free: 15.09 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0006874/0.4645, allocations: 485.1 kB / 467.7 MB, free: 14.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.4645, allocations: 12.03 kB / 467.7 MB, free: 14.56 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.5e-05/0.4646, allocations: 19.72 kB / 467.8 MB, free: 14.54 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002568/0.4649, allocations: 230.6 kB / 468 MB, free: 14.28 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.4649, allocations: 7.984 kB / 468 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.413e-05/0.4649, allocations: 8 kB / 468 MB, free: 14.26 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002184/0.4652, allocations: 112.5 kB / 468.1 MB, free: 14.15 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002456/0.4654, allocations: 170.6 kB / 468.3 MB, free: 13.97 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.4654, allocations: 0 / 468.3 MB, free: 13.97 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.783e-05/0.4655, allocations: 3.938 kB / 468.3 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.829e-05/0.4655, allocations: 4 kB / 468.3 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.4665, allocations: 0.7551 MB / 469 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002541/0.4668, allocations: 137.6 kB / 469.2 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.14e-05/0.4669, allocations: 65.83 kB / 469.2 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.81e-05/0.467, allocations: 0 / 469.2 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002038/0.4672, allocations: 133.1 kB / 469.4 MB, free: 12.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.4672, allocations: 0 / 469.4 MB, free: 12.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.000384/0.4676, allocations: 157.5 kB / 469.5 MB, free: 12.62 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.4676, allocations: 89.09 kB / 469.6 MB, free: 12.52 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/0.4678, allocations: 163.1 kB / 469.8 MB, free: 12.35 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.4678, allocations: 25.7 kB / 469.8 MB, free: 12.32 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.573e-05/0.4679, allocations: 148.2 kB / 469.9 MB, free: 12.16 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.255e-05/0.468, allocations: 39.45 kB / 470 MB, free: 12.12 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.588e-06/0.468, allocations: 3.938 kB / 470 MB, free: 12.12 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.4681, allocations: 326.8 kB / 470.3 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.727e-05/0.4682, allocations: 51.97 kB / 470.4 MB, free: 11.74 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.4684, allocations: 113.5 kB / 470.5 MB, free: 11.61 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001168/0.4685, allocations: 55.97 kB / 470.5 MB, free: 11.55 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.4685, allocations: 4 kB / 470.5 MB, free: 11.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003072/0.4688, allocations: 201.2 kB / 470.7 MB, free: 11.35 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.4688, allocations: 4 kB / 470.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.4689, allocations: 4 kB / 470.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.4689, allocations: 8.062 kB / 470.7 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001768/0.4691, allocations: 39.84 kB / 470.8 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.4691, allocations: 4 kB / 470.8 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001562/0.4692, allocations: 32.08 kB / 470.8 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.725e-05/0.4693, allocations: 11.98 kB / 470.8 MB, free: 11.25 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.497e-05/0.4694, allocations: 122.7 kB / 470.9 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002437/0.4696, allocations: 157.3 kB / 471.1 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.76e-05/0.4697, allocations: 19.86 kB / 471.1 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003107/0.47, allocations: 179.8 kB / 471.3 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.47, allocations: 4 kB / 471.3 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.47, allocations: 0 / 471.3 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.47, allocations: 0 / 471.3 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002518/0.4703, allocations: 230.1 kB / 471.5 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.4703, allocations: 3.938 kB / 471.5 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.4704, allocations: 19.98 kB / 471.5 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.4704, allocations: 4 kB / 471.5 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.4704, allocations: 3.984 kB / 471.5 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.4705, allocations: 7.953 kB / 471.6 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.4705, allocations: 4 kB / 471.6 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002789/0.4707, allocations: 207.3 kB / 471.8 MB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.111e-05/0.4708, allocations: 88.92 kB / 471.8 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.88e-05/0.4708, allocations: 3.953 kB / 471.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.471, allocations: 31.95 kB / 471.9 MB, free: 10.08 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.796e-05/0.4711, allocations: 19.97 kB / 471.9 MB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.726e-05/0.4711, allocations: 8 kB / 471.9 MB, free: 10.05 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.851e-05/0.4712, allocations: 129.5 kB / 472 MB, free: 9.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4712, allocations: 0 / 472 MB, free: 9.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002725/0.4715, allocations: 31.94 kB / 472.1 MB, free: 9.898 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: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006587/0.4721, allocations: 0.8129 MB / 472.9 MB, free: 9.051 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002628/0.4724, allocations: 144.8 kB / 473 MB, free: 8.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4724, allocations: 0 / 473 MB, free: 8.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001174/0.4726, allocations: 68.3 kB / 473.1 MB, free: 8.844 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003012/0.4729, allocations: 39.91 kB / 473.1 MB, free: 8.805 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007397/0.4736, allocations: 295.8 kB / 473.4 MB, free: 8.469 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004162/0.474, allocations: 0.7477 MB / 474.2 MB, free: 7.691 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001194/0.4742, allocations: 33.83 kB / 474.2 MB, free: 7.66 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.4743, allocations: 59.42 kB / 474.3 MB, free: 7.602 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4743, allocations: 0 / 474.3 MB, free: 7.602 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02191/0.4962, allocations: 3.185 MB / 477.4 MB, free: 4.449 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001924/0.4965, allocations: 125.3 kB / 477.6 MB, free: 4.258 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.693/2.19, allocations: 0 / 477.6 MB, free: 4.258 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat does not exist to compare? outputFormat=mat