Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_0_0_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.0007644/0.0007645, allocations: 88.16 kB / 16.31 MB, free: 5.594 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.000818/0.000818, allocations: 176.2 kB / 17.2 MB, free: 5.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 223.2 MB / 241.2 MB, free: 360 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004096/0.0004097, allocations: 8 kB / 300.9 MB, free: 6.367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.116, allocations: 50.42 MB / 351.3 MB, free: 3.938 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.0019/0.1179, allocations: 1.52 MB / 352.8 MB, free: 2.398 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009051/0.1188, allocations: 0.5496 MB / 353.4 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.876e-05/0.1189, allocations: 3.938 kB / 353.4 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001055/0.119, allocations: 27.73 kB / 353.4 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001203/0.1192, allocations: 27.78 kB / 353.4 MB, free: 1.789 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002102/0.1194, allocations: 51.89 kB / 353.5 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001845/0.1196, allocations: 147.3 kB / 353.6 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001563/0.1197, allocations: 57.62 kB / 353.7 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.665e-05/0.1198, allocations: 55.72 kB / 353.8 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.12, allocations: 63.62 kB / 353.8 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.206e-05/0.12, allocations: 4 kB / 353.8 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.991e-05/0.1201, allocations: 15.98 kB / 353.8 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.907e-05/0.1201, allocations: 23.86 kB / 353.9 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.343e-05/0.1202, allocations: 57.62 kB / 353.9 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001544/0.1204, allocations: 115.9 kB / 354 MB, free: 1.203 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1204, allocations: 0 / 354 MB, free: 1.203 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1204, allocations: 4 kB / 354 MB, free: 1.199 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.429e-06/0.1204, allocations: 4 kB / 354 MB, free: 1.195 MB / 286.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.0007501/0.1211, allocations: 494.7 kB / 354.5 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.1212, allocations: 12.03 kB / 354.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.46e-05/0.1213, allocations: 50.5 kB / 354.6 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.914e-05/0.1213, allocations: 23.72 kB / 354.6 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000286/0.1216, allocations: 226.6 kB / 354.8 MB, free: 312 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.398e-05/0.1216, allocations: 12.27 kB / 354.8 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.371e-05/0.1217, allocations: 16 kB / 354.9 MB, free: 284 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003612/0.122, allocations: 191.8 kB / 355 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.1221, allocations: 0 / 355 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.072e-05/0.1221, allocations: 11.95 kB / 355.1 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.138e-05/0.1221, allocations: 7.984 kB / 355.1 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003202/0.1225, allocations: 155.8 kB / 355.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001164/0.1236, allocations: 0.7936 MB / 356 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003234/0.124, allocations: 173 kB / 356.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.1241, allocations: 77.8 kB / 356.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.491e-05/0.1242, allocations: 4 kB / 356.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000265/0.1245, allocations: 152.5 kB / 356.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.1245, allocations: 0 / 356.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005532/0.125, allocations: 270 kB / 356.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.1251, allocations: 81.11 kB / 356.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001833/0.1253, allocations: 199 kB / 356.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.1253, allocations: 29.7 kB / 357 MB, free: 14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.701e-05/0.1254, allocations: 144.1 kB / 357.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.521e-05/0.1255, allocations: 47.39 kB / 357.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.004e-05/0.1255, allocations: 8 kB / 357.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1256, allocations: 334.8 kB / 357.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/0.1257, allocations: 67.95 kB / 357.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001746/0.1259, allocations: 130.8 kB / 357.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001554/0.1261, allocations: 83.95 kB / 357.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.1261, allocations: 7.953 kB / 357.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004086/0.1265, allocations: 253.1 kB / 358 MB, free: 12.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.1265, allocations: 6.344 kB / 358 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.1266, allocations: 4 kB / 358 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.1266, allocations: 4.188 kB / 358 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001701/0.1268, allocations: 31.98 kB / 358.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.1268, allocations: 7.938 kB / 358.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001552/0.1269, allocations: 35.81 kB / 358.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.697e-05/0.127, allocations: 12 kB / 358.1 MB, free: 12.81 MB / 302.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.0001203/0.1271, allocations: 137.8 kB / 358.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.995e-05/0.1271, allocations: 27.77 kB / 358.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004175/0.1275, allocations: 215 kB / 358.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.1276, allocations: 3.938 kB / 358.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1276, allocations: 7.938 kB / 358.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1276, allocations: 4 kB / 358.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002426/0.1278, allocations: 273.4 kB / 358.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1278, allocations: 0 / 358.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001107/0.128, allocations: 27.94 kB / 358.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.128, allocations: 0 / 358.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.128, allocations: 0 / 358.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.128, allocations: 4 kB / 358.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.128, allocations: 0 / 358.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003529/0.1284, allocations: 237.6 kB / 359 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.989e-05/0.1284, allocations: 88.92 kB / 359.1 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.815e-05/0.1284, allocations: 7.953 kB / 359.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.1286, allocations: 27.97 kB / 359.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.19e-05/0.1286, allocations: 15.97 kB / 359.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.1287, allocations: 8 kB / 359.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001123/0.1288, allocations: 140.7 kB / 359.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1288, allocations: 3.938 kB / 359.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002489/0.129, allocations: 39.84 kB / 359.4 MB, free: 11.45 MB / 302.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.0006773/0.1297, allocations: 0.7802 MB / 360.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003538/0.1301, allocations: 179.8 kB / 360.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1301, allocations: 0 / 360.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001614/0.1303, allocations: 92.52 kB / 360.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003235/0.1306, allocations: 40.33 kB / 360.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001704/0.1323, allocations: 1.21 MB / 361.7 MB, free: 9.059 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.1326, allocations: 0.7398 MB / 362.4 MB, free: 8.293 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001176/0.1328, allocations: 33.53 kB / 362.4 MB, free: 8.262 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.1329, allocations: 59.41 kB / 362.5 MB, free: 8.203 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1329, allocations: 0 / 362.5 MB, free: 8.203 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01474/0.1476, allocations: 3.608 MB / 366.1 MB, free: 4.727 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001798/0.1479, allocations: 179.1 kB / 366.3 MB, free: 4.484 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.75/1.898, allocations: 0 / 366.3 MB, free: 4.484 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat does not exist to compare? outputFormat=mat