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.001165/0.001165, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.345/1.345, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0008877/0.0008878, allocations: 96.19 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002462/0.0002462, allocations: 11.94 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2457, allocations: 50.39 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09521/0.3409, allocations: 77.67 MB / 479.2 MB, free: 2.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000224/0.3412, allocations: 66.78 kB / 479.3 MB, free: 2.758 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008241/0.3495, allocations: 2.752 MB / 482.1 MB, free: 4 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3495, allocations: 0 / 482.1 MB, free: 4 kB / 346.7 MB Notification: Performance of Transformations before backend: time 1.537e-05/0.3495, allocations: 4 kB / 482.1 MB, free: 0 / 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.0007719/0.3503, allocations: 0.4998 MB / 482.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.543e-05/0.3504, allocations: 12.03 kB / 482.6 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.964e-05/0.3505, allocations: 46.55 kB / 482.6 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.644e-05/0.3505, allocations: 27.66 kB / 482.6 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002472/0.3508, allocations: 226.7 kB / 482.9 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.3508, allocations: 12.28 kB / 482.9 MB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.546e-05/0.3508, allocations: 19.94 kB / 482.9 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003561/0.3512, allocations: 195.8 kB / 483.1 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.3512, allocations: 0 / 483.1 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/0.3512, allocations: 4 kB / 483.1 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.003e-05/0.3513, allocations: 8 kB / 483.1 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000355/0.3516, allocations: 143.8 kB / 483.2 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001281/0.3529, allocations: 0.7974 MB / 484 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003517/0.3533, allocations: 153.1 kB / 484.2 MB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.323e-05/0.3533, allocations: 15.92 kB / 484.2 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002911/0.3536, allocations: 144.5 kB / 484.3 MB, free: 13.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.694e-06/0.3537, allocations: 0 / 484.3 MB, free: 13.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006314/0.3543, allocations: 257.5 kB / 484.6 MB, free: 13.24 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.651e-05/0.3544, allocations: 81.11 kB / 484.7 MB, free: 13.14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001995/0.3546, allocations: 178.2 kB / 484.8 MB, free: 12.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.614e-05/0.3547, allocations: 29.7 kB / 484.9 MB, free: 12.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.3548, allocations: 148.1 kB / 485 MB, free: 12.78 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.257e-05/0.3548, allocations: 43.45 kB / 485.1 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.246e-05/0.3548, allocations: 4 kB / 485.1 MB, free: 12.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.355, allocations: 326.8 kB / 485.4 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001856/0.3551, allocations: 71.95 kB / 485.5 MB, free: 12.33 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002035/0.3554, allocations: 127.8 kB / 485.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001609/0.3555, allocations: 80.59 kB / 485.7 MB, free: 12.11 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.3555, allocations: 3.953 kB / 485.7 MB, free: 12.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004099/0.356, allocations: 249.1 kB / 485.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.356, allocations: 4 kB / 485.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.356, allocations: 12.17 kB / 485.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.356, allocations: 4 kB / 485.9 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001702/0.3562, allocations: 39.91 kB / 486 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.3562, allocations: 4 kB / 486 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001594/0.3564, allocations: 35.83 kB / 486 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.32e-05/0.3564, allocations: 4 kB / 486 MB, free: 11.75 MB / 362.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 () * Number of clocked 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 0.0001182/0.3565, allocations: 145.8 kB / 486.1 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.76e-05/0.3566, allocations: 23.67 kB / 486.2 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004157/0.357, allocations: 214.9 kB / 486.4 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.357, allocations: 112 / 486.4 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.357, allocations: 7.938 kB / 486.4 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.357, allocations: 7.984 kB / 486.4 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002335/0.3573, allocations: 261.5 kB / 486.7 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3573, allocations: 0 / 486.7 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001171/0.3574, allocations: 27.88 kB / 486.7 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.3574, allocations: 7.984 kB / 486.7 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.3574, allocations: 4 kB / 486.7 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.3575, allocations: 0 / 486.7 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3575, allocations: 4 kB / 486.7 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003732/0.3578, allocations: 243.2 kB / 486.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.836e-05/0.3579, allocations: 96.86 kB / 487 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.374e-05/0.3579, allocations: 0 / 487 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001345/0.3581, allocations: 31.97 kB / 487.1 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.15e-05/0.3581, allocations: 15.97 kB / 487.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.3582, allocations: 4 kB / 487.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001089/0.3583, allocations: 144.6 kB / 487.2 MB, free: 10.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3583, allocations: 0 / 487.2 MB, free: 10.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002518/0.3585, allocations: 32 kB / 487.3 MB, free: 10.39 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: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked 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.0006504/0.3592, allocations: 0.866 MB / 488.1 MB, free: 9.496 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000341/0.3596, allocations: 167.8 kB / 488.3 MB, free: 9.332 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3596, allocations: 3.938 kB / 488.3 MB, free: 9.328 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001575/0.3597, allocations: 84.33 kB / 488.4 MB, free: 9.246 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002685/0.36, allocations: 36.19 kB / 488.4 MB, free: 9.211 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001936/0.3619, allocations: 2.244 MB / 490.6 MB, free: 6.875 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.3622, allocations: 0.736 MB / 491.4 MB, free: 6.113 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001144/0.3623, allocations: 41.5 kB / 491.4 MB, free: 6.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.3625, allocations: 67.41 kB / 491.5 MB, free: 6.004 MB / 362.7 MB Notification: Performance of SimCode: time 2.81e-07/0.3625, allocations: 3.938 kB / 491.5 MB, free: 6 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01341/0.3759, allocations: 3.591 MB / 495.1 MB, free: 2.547 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001562/0.3761, allocations: 175.8 kB / 495.3 MB, free: 2.297 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.723/2.099, allocations: 0 / 495.3 MB, free: 2.297 MB / 362.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