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.002497/0.002497, allocations: 188.1 kB / 16.4 MB, free: 5.625 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.149/2.149, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001656/0.001656, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003898/0.0003899, allocations: 12 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1051, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002787/0.108, allocations: 1.517 MB / 376.1 MB, free: 13.82 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001454/0.1095, allocations: 0.5856 MB / 376.7 MB, free: 13.23 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.1096, allocations: 3.938 kB / 376.7 MB, free: 13.22 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.1098, allocations: 11.86 kB / 376.7 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001974/0.11, allocations: 39.88 kB / 376.8 MB, free: 13.17 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000296/0.1103, allocations: 47.89 kB / 376.8 MB, free: 13.12 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002434/0.1105, allocations: 115.7 kB / 376.9 MB, free: 13.01 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001986/0.1108, allocations: 53.44 kB / 377 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001406/0.1109, allocations: 59.7 kB / 377.1 MB, free: 12.9 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.1111, allocations: 63.64 kB / 377.1 MB, free: 12.84 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.824e-05/0.1111, allocations: 4 kB / 377.1 MB, free: 12.83 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.898e-05/0.1112, allocations: 11.98 kB / 377.1 MB, free: 12.82 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.864e-05/0.1113, allocations: 43.83 kB / 377.2 MB, free: 12.78 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.972e-05/0.1114, allocations: 49.58 kB / 377.2 MB, free: 12.72 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002218/0.1116, allocations: 108 kB / 377.3 MB, free: 12.62 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.1116, allocations: 4 kB / 377.3 MB, free: 12.61 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1117, allocations: 0 / 377.3 MB, free: 12.61 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.411e-06/0.1117, allocations: 0 / 377.3 MB, free: 12.61 MB / 282.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.001141/0.1128, allocations: 494.8 kB / 377.8 MB, free: 12.08 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/0.1129, allocations: 8.031 kB / 377.8 MB, free: 12.07 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.542e-05/0.113, allocations: 54.53 kB / 377.9 MB, free: 12.01 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.511e-05/0.1131, allocations: 23.72 kB / 377.9 MB, free: 11.99 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000363/0.1134, allocations: 230.5 kB / 378.1 MB, free: 11.72 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.1135, allocations: 12.28 kB / 378.1 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.47e-05/0.1135, allocations: 16 kB / 378.2 MB, free: 11.7 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005597/0.1141, allocations: 202.9 kB / 378.4 MB, free: 11.48 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.1141, allocations: 3.938 kB / 378.4 MB, free: 11.48 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.072e-05/0.1142, allocations: 11.92 kB / 378.4 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-05/0.1142, allocations: 8 kB / 378.4 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005303/0.1148, allocations: 147.8 kB / 378.5 MB, free: 11.31 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001636/0.1164, allocations: 0.7857 MB / 379.3 MB, free: 10.46 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005072/0.117, allocations: 173 kB / 379.5 MB, free: 10.28 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.235e-05/0.117, allocations: 4 kB / 379.5 MB, free: 10.27 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003962/0.1174, allocations: 149.8 kB / 379.6 MB, free: 10.11 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 5.53e-06/0.1175, allocations: 0 / 379.6 MB, free: 10.11 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009666/0.1184, allocations: 265.5 kB / 379.9 MB, free: 9.844 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.454e-05/0.1186, allocations: 89.17 kB / 380 MB, free: 9.738 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002838/0.1188, allocations: 203 kB / 380.2 MB, free: 9.531 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/0.1189, allocations: 29.7 kB / 380.2 MB, free: 9.496 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.1191, allocations: 198.5 kB / 380.4 MB, free: 9.297 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.481e-05/0.1191, allocations: 47.44 kB / 380.4 MB, free: 9.25 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.352e-05/0.1192, allocations: 0 / 380.4 MB, free: 9.25 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1193, allocations: 322.8 kB / 380.8 MB, free: 8.926 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002779/0.1196, allocations: 71.95 kB / 380.8 MB, free: 8.855 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003128/0.1199, allocations: 126.8 kB / 380.9 MB, free: 8.707 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003051/0.1203, allocations: 87.89 kB / 381 MB, free: 8.621 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.1203, allocations: 0 / 381 MB, free: 8.621 MB / 282.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007436/0.121, allocations: 242.1 kB / 381.3 MB, free: 8.379 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.1211, allocations: 4 kB / 381.3 MB, free: 8.375 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.1211, allocations: 7.984 kB / 381.3 MB, free: 8.367 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.079e-05/0.1211, allocations: 0 / 381.3 MB, free: 8.367 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003062/0.1214, allocations: 36.03 kB / 381.3 MB, free: 8.332 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/0.1215, allocations: 7.938 kB / 381.3 MB, free: 8.324 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002967/0.1218, allocations: 43.83 kB / 381.4 MB, free: 8.281 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.517e-05/0.1218, allocations: 8.078 kB / 381.4 MB, free: 8.273 MB / 282.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.0002212/0.122, allocations: 137.8 kB / 381.5 MB, free: 8.129 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.898e-05/0.1221, allocations: 15.81 kB / 381.5 MB, free: 8.113 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007423/0.1229, allocations: 234.8 kB / 381.8 MB, free: 7.875 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.1229, allocations: 11.92 kB / 381.8 MB, free: 7.863 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.1229, allocations: 0 / 381.8 MB, free: 7.863 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.1229, allocations: 0 / 381.8 MB, free: 7.863 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004131/0.1233, allocations: 265.5 kB / 382 MB, free: 7.555 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.1234, allocations: 0 / 382 MB, free: 7.555 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002216/0.1236, allocations: 23.97 kB / 382.1 MB, free: 7.531 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.304e-05/0.1236, allocations: 8 kB / 382.1 MB, free: 7.523 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.103e-05/0.1237, allocations: 8 kB / 382.1 MB, free: 7.516 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.1237, allocations: 0 / 382.1 MB, free: 7.516 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.1237, allocations: 4 kB / 382.1 MB, free: 7.512 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006979/0.1244, allocations: 259 kB / 382.3 MB, free: 7.234 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.207e-05/0.1245, allocations: 88.92 kB / 382.4 MB, free: 7.129 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.717e-05/0.1245, allocations: 0 / 382.4 MB, free: 7.129 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002428/0.1248, allocations: 27.97 kB / 382.4 MB, free: 7.102 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.335e-05/0.1249, allocations: 15.97 kB / 382.5 MB, free: 7.086 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/0.1249, allocations: 7.953 kB / 382.5 MB, free: 7.078 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001981/0.1251, allocations: 152.4 kB / 382.6 MB, free: 6.93 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.72e-07/0.1252, allocations: 0 / 382.6 MB, free: 6.93 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003893/0.1256, allocations: 35.94 kB / 382.6 MB, free: 6.895 MB / 282.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.001141/0.1267, allocations: 0.8552 MB / 383.5 MB, free: 6.004 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006651/0.1274, allocations: 176 kB / 383.7 MB, free: 5.832 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.1274, allocations: 4.062 kB / 383.7 MB, free: 5.828 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003115/0.1278, allocations: 91.89 kB / 383.8 MB, free: 5.738 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004556/0.1282, allocations: 35.89 kB / 383.8 MB, free: 5.703 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003442/0.1317, allocations: 2.268 MB / 386.1 MB, free: 3.348 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004158/0.1322, allocations: 0.744 MB / 386.8 MB, free: 2.578 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001935/0.1324, allocations: 63.34 kB / 386.9 MB, free: 2.516 MB / 282.7 MB Notification: Performance of SimCode: time 1.613e-06/0.1324, allocations: 0 / 386.9 MB, free: 2.516 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.901/3.033, allocations: 3.112 MB / 390 MB, free: 20.67 MB / 282.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