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.001591/0.001591, allocations: 182.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.162/2.162, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001627/0.001627, allocations: 90.69 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.713e-05/3.732e-05, allocations: 4 kB / 321.6 MB, free: 17.78 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1072, allocations: 47.57 MB / 369.2 MB, free: 2.137 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3991/0.5064, allocations: 76.8 MB / 446 MB, free: 356 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002449/0.5067, allocations: 65.66 kB / 446 MB, free: 324 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01316/0.5199, allocations: 2.695 MB / 448.7 MB, free: 14 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.5199, allocations: 0 / 448.7 MB, free: 14 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.491e-05/0.52, allocations: 4 kB / 448.7 MB, free: 14 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.001072/0.5211, allocations: 479.1 kB / 449.2 MB, free: 13.49 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.545e-05/0.5211, allocations: 8.031 kB / 449.2 MB, free: 13.48 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.898e-05/0.5212, allocations: 54.09 kB / 449.3 MB, free: 13.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.458e-05/0.5213, allocations: 23.66 kB / 449.3 MB, free: 13.41 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000388/0.5217, allocations: 226.1 kB / 449.5 MB, free: 13.16 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.965e-05/0.5218, allocations: 15.92 kB / 449.5 MB, free: 13.14 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.833e-05/0.5218, allocations: 15.88 kB / 449.5 MB, free: 13.13 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004713/0.5223, allocations: 185 kB / 449.7 MB, free: 12.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.5223, allocations: 0 / 449.7 MB, free: 12.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.71e-05/0.5224, allocations: 7.922 kB / 449.7 MB, free: 12.97 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.7e-05/0.5224, allocations: 4 kB / 449.7 MB, free: 12.97 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003494/0.5228, allocations: 118.5 kB / 449.8 MB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/0.5246, allocations: 0.7977 MB / 450.6 MB, free: 12.1 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000424/0.5251, allocations: 143.7 kB / 450.8 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001694/0.5253, allocations: 68.89 kB / 450.9 MB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.632e-05/0.5253, allocations: 3.984 kB / 450.9 MB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002997/0.5256, allocations: 129.2 kB / 451 MB, free: 11.79 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 2.655e-06/0.5257, allocations: 0 / 451 MB, free: 11.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.000549/0.5262, allocations: 167.8 kB / 451.1 MB, free: 11.65 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.124e-05/0.5263, allocations: 89.06 kB / 451.2 MB, free: 11.55 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002692/0.5266, allocations: 184.5 kB / 451.4 MB, free: 11.38 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.735e-05/0.5266, allocations: 25.7 kB / 451.4 MB, free: 11.35 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.5268, allocations: 197.8 kB / 451.6 MB, free: 11.18 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.112e-05/0.5269, allocations: 47.25 kB / 451.7 MB, free: 11.14 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.53e-05/0.5269, allocations: 3.812 kB / 451.7 MB, free: 11.14 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.527, allocations: 314.7 kB / 452 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001682/0.5272, allocations: 59.16 kB / 452 MB, free: 10.78 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002218/0.5274, allocations: 118 kB / 452.2 MB, free: 10.66 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002029/0.5277, allocations: 63.22 kB / 452.2 MB, free: 10.62 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.207e-06/0.5277, allocations: 4 kB / 452.2 MB, free: 10.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005326/0.5282, allocations: 199.5 kB / 452.4 MB, free: 10.45 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.5283, allocations: 8 kB / 452.4 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.5283, allocations: 0 / 452.4 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.5283, allocations: 4 kB / 452.4 MB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000355/0.5287, allocations: 47.84 kB / 452.5 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.5287, allocations: 192 / 452.5 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002992/0.529, allocations: 39.78 kB / 452.5 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.937e-05/0.5291, allocations: 15.92 kB / 452.5 MB, free: 10.35 MB / 330.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 0.0001351/0.5292, allocations: 113 kB / 452.6 MB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.591e-05/0.5293, allocations: 19.75 kB / 452.7 MB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006015/0.5299, allocations: 196.7 kB / 452.9 MB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.5299, allocations: 7.984 kB / 452.9 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.5299, allocations: 0 / 452.9 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.53, allocations: 0 / 452.9 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004146/0.5304, allocations: 267.9 kB / 453.1 MB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.5304, allocations: 0 / 453.1 MB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002544/0.5307, allocations: 31.91 kB / 453.2 MB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.5307, allocations: 0 / 453.2 MB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/0.5307, allocations: 7.812 kB / 453.2 MB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.5307, allocations: 0 / 453.2 MB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.5307, allocations: 4 kB / 453.2 MB, free: 9.734 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004784/0.5312, allocations: 203 kB / 453.4 MB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.827e-05/0.5313, allocations: 104.8 kB / 453.5 MB, free: 9.422 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.014e-05/0.5314, allocations: 3.875 kB / 453.5 MB, free: 9.422 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002659/0.5317, allocations: 23.98 kB / 453.5 MB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.547e-05/0.5318, allocations: 22.97 kB / 453.5 MB, free: 9.379 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.609e-05/0.5318, allocations: 4 kB / 453.5 MB, free: 9.375 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001911/0.532, allocations: 148.4 kB / 453.7 MB, free: 9.25 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.532, allocations: 0 / 453.7 MB, free: 9.25 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000364/0.5324, allocations: 35.94 kB / 453.7 MB, free: 9.219 MB / 330.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.0008968/0.5333, allocations: 0.8159 MB / 454.5 MB, free: 8.406 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004736/0.5338, allocations: 150.8 kB / 454.7 MB, free: 8.297 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.5338, allocations: 0 / 454.7 MB, free: 8.297 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002496/0.5341, allocations: 71.73 kB / 454.7 MB, free: 8.242 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004865/0.5346, allocations: 58.81 kB / 454.8 MB, free: 8.195 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/0.5357, allocations: 361 kB / 455.1 MB, free: 7.836 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003906/0.5361, allocations: 0.7438 MB / 455.9 MB, free: 7.062 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00016/0.5363, allocations: 59.73 kB / 455.9 MB, free: 7.043 MB / 330.7 MB Notification: Performance of SimCode: time 1.452e-06/0.5363, allocations: 0 / 455.9 MB, free: 7.043 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.744/3.281, allocations: 3.149 MB / 459.1 MB, free: 3.922 MB / 330.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