Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.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.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001051/0.001051, allocations: 197.2 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.393/1.393, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008692/0.0008693, allocations: 92.19 kB / 292.1 MB, free: 5.965 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.184e-05/3.194e-05, allocations: 0 / 350.6 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1232, allocations: 51.49 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3419/0.4652, allocations: 78.41 MB / 480.5 MB, free: 11.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001889/0.4654, allocations: 63.53 kB / 480.6 MB, free: 10.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007936/0.4734, allocations: 2.835 MB / 483.4 MB, free: 8.59 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.4734, allocations: 0 / 483.4 MB, free: 8.59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.4734, allocations: 4 kB / 483.4 MB, free: 8.586 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.0005935/0.474, allocations: 493.1 kB / 483.9 MB, free: 8.078 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.4741, allocations: 8.031 kB / 483.9 MB, free: 8.07 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.094e-05/0.4742, allocations: 45.48 kB / 484 MB, free: 8.023 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.4743, allocations: 31.72 kB / 484 MB, free: 7.992 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000218/0.4745, allocations: 238.2 kB / 484.2 MB, free: 7.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.4745, allocations: 7.719 kB / 484.2 MB, free: 7.727 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.538e-05/0.4746, allocations: 22.8 kB / 484.3 MB, free: 7.715 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002559/0.4748, allocations: 178.7 kB / 484.4 MB, free: 7.562 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.4749, allocations: 0 / 484.4 MB, free: 7.562 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.4749, allocations: 11.11 kB / 484.4 MB, free: 7.555 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.668e-05/0.4749, allocations: 4 kB / 484.4 MB, free: 7.551 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001785/0.4751, allocations: 112.7 kB / 484.6 MB, free: 7.473 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008795/0.476, allocations: 0.7953 MB / 485.3 MB, free: 6.691 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000227/0.4762, allocations: 148.9 kB / 485.5 MB, free: 6.562 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.282e-05/0.4763, allocations: 63.53 kB / 485.6 MB, free: 6.516 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.203e-05/0.4764, allocations: 4 kB / 485.6 MB, free: 6.512 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000177/0.4766, allocations: 131.1 kB / 485.7 MB, free: 6.387 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.4766, allocations: 0 / 485.7 MB, free: 6.387 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002994/0.4769, allocations: 173.6 kB / 485.9 MB, free: 6.242 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.227e-05/0.4769, allocations: 84.38 kB / 485.9 MB, free: 6.145 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/0.477, allocations: 177.5 kB / 486.1 MB, free: 5.988 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.4771, allocations: 29.7 kB / 486.1 MB, free: 5.953 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.837e-05/0.4771, allocations: 141.4 kB / 486.3 MB, free: 5.836 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.895e-05/0.4772, allocations: 42.7 kB / 486.3 MB, free: 5.801 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.828e-06/0.4772, allocations: 3.797 kB / 486.3 MB, free: 5.801 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.162e-05/0.4773, allocations: 334 kB / 486.7 MB, free: 5.473 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.656e-05/0.4773, allocations: 65.98 kB / 486.7 MB, free: 5.426 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001037/0.4775, allocations: 108.7 kB / 486.8 MB, free: 5.316 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001018/0.4776, allocations: 69.95 kB / 486.9 MB, free: 5.266 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.4776, allocations: 0 / 486.9 MB, free: 5.266 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002745/0.4779, allocations: 220.7 kB / 487.1 MB, free: 5.086 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.4779, allocations: 4 kB / 487.1 MB, free: 5.082 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.4779, allocations: 5.641 kB / 487.1 MB, free: 5.078 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.4779, allocations: 0 / 487.1 MB, free: 5.078 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001698/0.4781, allocations: 36.17 kB / 487.2 MB, free: 5.043 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.4781, allocations: 7.938 kB / 487.2 MB, free: 5.035 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001469/0.4783, allocations: 39.52 kB / 487.2 MB, free: 5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/0.4783, allocations: 8 kB / 487.2 MB, free: 4.992 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 7.032e-05/0.4784, allocations: 120.2 kB / 487.3 MB, free: 4.875 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.291e-05/0.4784, allocations: 15.81 kB / 487.3 MB, free: 4.859 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002993/0.4787, allocations: 197.9 kB / 487.5 MB, free: 4.711 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.4787, allocations: 0 / 487.5 MB, free: 4.711 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.4788, allocations: 2.188 kB / 487.5 MB, free: 4.711 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.4788, allocations: 0 / 487.5 MB, free: 4.711 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001859/0.479, allocations: 275.1 kB / 487.8 MB, free: 4.426 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.479, allocations: 4 kB / 487.8 MB, free: 4.422 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.4791, allocations: 27.55 kB / 487.8 MB, free: 4.398 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.4791, allocations: 0 / 487.8 MB, free: 4.398 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.4791, allocations: 4 kB / 487.8 MB, free: 4.395 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.4791, allocations: 4 kB / 487.8 MB, free: 4.391 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4791, allocations: 3.984 kB / 487.8 MB, free: 4.387 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002243/0.4794, allocations: 214.4 kB / 488.1 MB, free: 4.188 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.34e-05/0.4794, allocations: 92.86 kB / 488.1 MB, free: 4.078 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.312e-05/0.4794, allocations: 2.938 kB / 488.1 MB, free: 4.078 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001295/0.4796, allocations: 31.47 kB / 488.2 MB, free: 4.051 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.654e-05/0.4796, allocations: 15.97 kB / 488.2 MB, free: 4.035 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.4796, allocations: 7.375 kB / 488.2 MB, free: 4.031 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.271e-05/0.4797, allocations: 152 kB / 488.3 MB, free: 3.902 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4797, allocations: 3.938 kB / 488.4 MB, free: 3.898 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002309/0.48, allocations: 38.41 kB / 488.4 MB, free: 3.867 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.0005112/0.4805, allocations: 0.8246 MB / 489.2 MB, free: 3.043 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002284/0.4807, allocations: 154.3 kB / 489.4 MB, free: 2.93 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.4807, allocations: 384 / 489.4 MB, free: 2.93 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001015/0.4809, allocations: 75.41 kB / 489.4 MB, free: 2.871 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002763/0.4811, allocations: 32.62 kB / 489.5 MB, free: 2.848 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005997/0.4817, allocations: 316.8 kB / 489.8 MB, free: 2.547 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000167/0.4819, allocations: 0.7399 MB / 490.5 MB, free: 1.777 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001033/0.482, allocations: 37.52 kB / 490.6 MB, free: 1.742 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.72e-05/0.4821, allocations: 56.98 kB / 490.6 MB, free: 1.723 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4821, allocations: 0 / 490.6 MB, free: 1.723 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01508/0.4972, allocations: 3.615 MB / 494.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000218/0.4975, allocations: 137.7 kB / 494.4 MB, free: 14.14 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.712/2.21, allocations: 5.969 kB / 494.4 MB, free: 14.14 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat does not exist to compare? outputFormat=mat