Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009515/0.0009517, allocations: 100.4 kB / 16.94 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008524/0.0008524, allocations: 185 kB / 17.83 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.371/1.371, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004442/0.0004442, allocations: 15.66 kB / 280.8 MB, free: 3.664 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0879/0.08836, allocations: 47.58 MB / 328.4 MB, free: 4.02 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001919/0.09032, allocations: 1.514 MB / 329.9 MB, free: 2.492 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009612/0.09131, allocations: 0.5895 MB / 330.5 MB, free: 1.895 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.545e-05/0.09142, allocations: 4 kB / 330.5 MB, free: 1.891 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 8.575e-05/0.09151, allocations: 11.86 kB / 330.5 MB, free: 1.879 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001302/0.09165, allocations: 35.88 kB / 330.6 MB, free: 1.844 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002145/0.09188, allocations: 59.81 kB / 330.6 MB, free: 1.785 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001636/0.09205, allocations: 103.8 kB / 330.7 MB, free: 1.684 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.09222, allocations: 57.44 kB / 330.8 MB, free: 1.625 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.09233, allocations: 59.64 kB / 330.8 MB, free: 1.566 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000113/0.09245, allocations: 63.7 kB / 330.9 MB, free: 1.504 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.92e-05/0.09248, allocations: 4 kB / 330.9 MB, free: 1.5 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.987e-05/0.09254, allocations: 11.94 kB / 330.9 MB, free: 1.488 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.283e-05/0.09261, allocations: 31.89 kB / 330.9 MB, free: 1.457 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.743e-05/0.09268, allocations: 53.58 kB / 331 MB, free: 1.398 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001425/0.09282, allocations: 116 kB / 331.1 MB, free: 1.285 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.09283, allocations: 0 / 331.1 MB, free: 1.285 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.09284, allocations: 0 / 331.1 MB, free: 1.285 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.09285, allocations: 0 / 331.1 MB, free: 1.285 MB / 270.1 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.0008552/0.09371, allocations: 494.8 kB / 331.6 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.425e-05/0.09379, allocations: 12.03 kB / 331.6 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.967e-05/0.09387, allocations: 50.55 kB / 331.7 MB, free: 0.6836 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.901e-05/0.09394, allocations: 19.72 kB / 331.7 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003299/0.09427, allocations: 230.5 kB / 331.9 MB, free: 408 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.051e-05/0.09432, allocations: 16.28 kB / 331.9 MB, free: 392 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.121e-05/0.09437, allocations: 19.92 kB / 331.9 MB, free: 372 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003526/0.09473, allocations: 206.9 kB / 332.1 MB, free: 148 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.09475, allocations: 0 / 332.1 MB, free: 148 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.09477, allocations: 4 kB / 332.1 MB, free: 144 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.318e-05/0.0948, allocations: 11.98 kB / 332.2 MB, free: 132 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003072/0.09511, allocations: 147.8 kB / 332.3 MB, free: 15.98 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.09624, allocations: 0.7857 MB / 333.1 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003018/0.09655, allocations: 169 kB / 333.3 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.656e-05/0.0966, allocations: 4 kB / 333.3 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002613/0.09687, allocations: 153 kB / 333.4 MB, free: 14.78 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.09688, allocations: 0 / 333.4 MB, free: 14.78 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005336/0.09742, allocations: 261.5 kB / 333.7 MB, free: 14.52 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.012e-05/0.09749, allocations: 89.22 kB / 333.7 MB, free: 14.41 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.09766, allocations: 207 kB / 333.9 MB, free: 14.2 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.744e-05/0.0977, allocations: 25.7 kB / 334 MB, free: 14.17 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.767e-05/0.0978, allocations: 144.1 kB / 334.1 MB, free: 14.02 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.561e-05/0.09785, allocations: 43.44 kB / 334.2 MB, free: 13.98 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.081e-05/0.09786, allocations: 8 kB / 334.2 MB, free: 13.97 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.09799, allocations: 326.8 kB / 334.5 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001443/0.09814, allocations: 75.95 kB / 334.6 MB, free: 13.57 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001732/0.09832, allocations: 122.8 kB / 334.7 MB, free: 13.43 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001603/0.09849, allocations: 88.53 kB / 334.8 MB, free: 13.34 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.0985, allocations: 0 / 334.8 MB, free: 13.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004052/0.09891, allocations: 257.2 kB / 335 MB, free: 13.08 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.09894, allocations: 4 kB / 335 MB, free: 13.08 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.09895, allocations: 4 kB / 335 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.09897, allocations: 4.109 kB / 335 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001643/0.09914, allocations: 39.84 kB / 335.1 MB, free: 13.03 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.09916, allocations: 4 kB / 335.1 MB, free: 13.03 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001698/0.09933, allocations: 43.84 kB / 335.1 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.404e-05/0.09935, allocations: 4.094 kB / 335.1 MB, free: 12.98 MB / 286.1 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.0001255/0.09949, allocations: 149.6 kB / 335.3 MB, free: 12.82 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.589e-05/0.09952, allocations: 19.8 kB / 335.3 MB, free: 12.8 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004134/0.09994, allocations: 226.9 kB / 335.5 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.09995, allocations: 0 / 335.5 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.09996, allocations: 0 / 335.5 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.09997, allocations: 7.984 kB / 335.5 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002452/0.1002, allocations: 269.4 kB / 335.8 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1002, allocations: 0 / 335.8 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.1003, allocations: 23.98 kB / 335.8 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.1004, allocations: 0 / 335.8 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.1004, allocations: 4 kB / 335.8 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.1004, allocations: 4 kB / 335.8 MB, free: 12.22 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.1004, allocations: 3.938 kB / 335.8 MB, free: 12.22 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003591/0.1008, allocations: 251 kB / 336.1 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.509e-05/0.1008, allocations: 92.91 kB / 336.1 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.876e-05/0.1009, allocations: 8 kB / 336.2 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.101, allocations: 19.98 kB / 336.2 MB, free: 11.81 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.522e-05/0.1011, allocations: 15.97 kB / 336.2 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.288e-05/0.1011, allocations: 7.953 kB / 336.2 MB, free: 11.79 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001039/0.1012, allocations: 152.4 kB / 336.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1012, allocations: 0 / 336.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002562/0.1015, allocations: 43.84 kB / 336.4 MB, free: 11.6 MB / 286.1 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.0007027/0.1022, allocations: 0.8513 MB / 337.2 MB, free: 10.71 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003533/0.1025, allocations: 180 kB / 337.4 MB, free: 10.54 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1025, allocations: 0 / 337.4 MB, free: 10.54 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001671/0.1027, allocations: 91.88 kB / 337.5 MB, free: 10.45 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.103, allocations: 39.88 kB / 337.5 MB, free: 10.41 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001982/0.105, allocations: 2.236 MB / 339.8 MB, free: 8.09 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.1053, allocations: 0.7515 MB / 340.5 MB, free: 7.312 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001083/0.1055, allocations: 37.45 kB / 340.6 MB, free: 7.277 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.881e-05/0.1055, allocations: 59.41 kB / 340.6 MB, free: 7.219 MB / 286.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1056, allocations: 0 / 340.6 MB, free: 7.219 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01323/0.1188, allocations: 3.595 MB / 344.2 MB, free: 3.633 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002077/0.119, allocations: 164.2 kB / 344.4 MB, free: 3.395 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.642/1.761, allocations: 7.938 kB / 344.4 MB, free: 3.387 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat does not exist to compare? outputFormat=mat