Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002369/0.002369, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.99/1.99, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001186/0.001185, allocations: 93.3 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003865/0.0003866, allocations: 8 kB / 327 MB, free: 148 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3279/0.3284, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1291/0.4576, allocations: 76.89 MB / 451.5 MB, free: 3.785 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002605/0.4579, allocations: 71.97 kB / 451.6 MB, free: 3.715 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01307/0.471, allocations: 2.703 MB / 454.3 MB, free: 1.004 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4711, allocations: 0 / 454.3 MB, free: 1.004 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.381e-05/0.4711, allocations: 4 kB / 454.3 MB, free: 1 MB / 330.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.001124/0.4722, allocations: 0.496 MB / 454.8 MB, free: 464 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.4723, allocations: 8.031 kB / 454.8 MB, free: 456 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.861e-05/0.4724, allocations: 42.56 kB / 454.8 MB, free: 404 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.4725, allocations: 27.7 kB / 454.9 MB, free: 376 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003734/0.4729, allocations: 240.9 kB / 455.1 MB, free: 96 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.029e-05/0.473, allocations: 16.23 kB / 455.1 MB, free: 80 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.968e-05/0.473, allocations: 12 kB / 455.1 MB, free: 68 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005794/0.4736, allocations: 194.9 kB / 455.3 MB, free: 15.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.4736, allocations: 0 / 455.3 MB, free: 15.86 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.539e-05/0.4737, allocations: 8 kB / 455.3 MB, free: 15.85 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.115e-05/0.4737, allocations: 11.98 kB / 455.3 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005302/0.4743, allocations: 135.9 kB / 455.5 MB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001721/0.476, allocations: 0.7936 MB / 456.3 MB, free: 14.85 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005542/0.4766, allocations: 165 kB / 456.4 MB, free: 14.67 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.453e-05/0.4767, allocations: 4 kB / 456.4 MB, free: 14.67 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004165/0.4771, allocations: 156.9 kB / 456.6 MB, free: 14.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 3.046e-06/0.4771, allocations: 4 kB / 456.6 MB, free: 14.49 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009563/0.4781, allocations: 249.5 kB / 456.8 MB, free: 14.24 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.738e-05/0.4782, allocations: 85.05 kB / 456.9 MB, free: 14.14 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002642/0.4785, allocations: 186.1 kB / 457.1 MB, free: 13.95 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.252e-05/0.4785, allocations: 29.81 kB / 457.1 MB, free: 13.92 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.4787, allocations: 206.5 kB / 457.3 MB, free: 13.71 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.793e-05/0.4787, allocations: 39.45 kB / 457.4 MB, free: 13.67 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.938e-05/0.4788, allocations: 4 kB / 457.4 MB, free: 13.67 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.4789, allocations: 318.8 kB / 457.7 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002759/0.4792, allocations: 63.95 kB / 457.7 MB, free: 13.29 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003111/0.4795, allocations: 137.2 kB / 457.9 MB, free: 13.13 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002995/0.4799, allocations: 82.03 kB / 458 MB, free: 13.05 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.4799, allocations: 0 / 458 MB, free: 13.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007567/0.4807, allocations: 233.4 kB / 458.2 MB, free: 12.82 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.656e-05/0.4807, allocations: 8 kB / 458.2 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.4807, allocations: 0 / 458.2 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.356e-05/0.4808, allocations: 4 kB / 458.2 MB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003159/0.4811, allocations: 39.91 kB / 458.2 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/0.4811, allocations: 4 kB / 458.2 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002975/0.4814, allocations: 35.89 kB / 458.3 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.387e-05/0.4815, allocations: 19.94 kB / 458.3 MB, free: 12.71 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 () * 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.0002234/0.4817, allocations: 133.8 kB / 458.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.493e-05/0.4818, allocations: 19.81 kB / 458.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007725/0.4826, allocations: 222.9 kB / 458.7 MB, free: 12.32 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.4826, allocations: 4 kB / 458.7 MB, free: 12.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.4826, allocations: 0 / 458.7 MB, free: 12.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.506e-05/0.4826, allocations: 4.078 kB / 458.7 MB, free: 12.32 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004242/0.4831, allocations: 273.3 kB / 458.9 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.4831, allocations: 0 / 458.9 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002342/0.4833, allocations: 31.97 kB / 459 MB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.4833, allocations: 0 / 459 MB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/0.4834, allocations: 4 kB / 459 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.4834, allocations: 4 kB / 459 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.4834, allocations: 0 / 459 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006685/0.4841, allocations: 240.2 kB / 459.2 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.545e-05/0.4842, allocations: 96.86 kB / 459.3 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.172e-05/0.4842, allocations: 7.938 kB / 459.3 MB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002744/0.4845, allocations: 23.97 kB / 459.3 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.776e-05/0.4846, allocations: 19.97 kB / 459.4 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.489e-05/0.4847, allocations: 4 kB / 459.4 MB, free: 11.53 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002025/0.4849, allocations: 144.4 kB / 459.5 MB, free: 11.39 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4849, allocations: 4 kB / 459.5 MB, free: 11.39 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003791/0.4853, allocations: 43.86 kB / 459.5 MB, free: 11.34 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 () * 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.001099/0.4864, allocations: 0.8476 MB / 460.4 MB, free: 10.46 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00066/0.4871, allocations: 172.1 kB / 460.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.4871, allocations: 4.062 kB / 460.6 MB, free: 10.29 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000313/0.4874, allocations: 92.19 kB / 460.7 MB, free: 10.2 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004636/0.4879, allocations: 43.88 kB / 460.7 MB, free: 10.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003305/0.4912, allocations: 2.265 MB / 463 MB, free: 7.801 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/0.4916, allocations: 0.7399 MB / 463.7 MB, free: 7.035 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001926/0.4919, allocations: 63.42 kB / 463.8 MB, free: 6.973 MB / 346.7 MB Notification: Performance of SimCode: time 1.012e-06/0.4919, allocations: 192 / 463.8 MB, free: 6.973 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.646/3.138, allocations: 3.133 MB / 466.9 MB, free: 3.848 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1_res.mat does not exist to compare? outputFormat=mat