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.0008604/0.0008606, allocations: 94.86 kB / 16.3 MB, free: 5.992 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.0008794/0.0008795, allocations: 178.8 kB / 17.2 MB, free: 5.906 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.384/1.384, allocations: 223.2 MB / 241.1 MB, free: 5.395 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002352/0.0002353, allocations: 5.719 kB / 300.8 MB, free: 5.914 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09799/0.09824, allocations: 50.43 MB / 351.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001882/0.1002, allocations: 1.519 MB / 352.7 MB, free: 10.08 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008226/0.101, allocations: 0.5418 MB / 353.3 MB, free: 9.535 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.1011, allocations: 4 kB / 353.3 MB, free: 9.531 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.094e-05/0.1012, allocations: 11.86 kB / 353.3 MB, free: 9.52 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001333/0.1014, allocations: 35.88 kB / 353.3 MB, free: 9.484 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002392/0.1016, allocations: 63.8 kB / 353.4 MB, free: 9.422 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001772/0.1018, allocations: 107.6 kB / 353.5 MB, free: 9.316 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001713/0.102, allocations: 65.56 kB / 353.6 MB, free: 9.254 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.1021, allocations: 47.78 kB / 353.6 MB, free: 9.207 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001202/0.1022, allocations: 67.62 kB / 353.7 MB, free: 9.141 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.227e-05/0.1023, allocations: 8 kB / 353.7 MB, free: 9.133 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.209e-05/0.1023, allocations: 7.984 kB / 353.7 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.603e-05/0.1024, allocations: 31.91 kB / 353.7 MB, free: 9.094 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.17e-05/0.1025, allocations: 53.58 kB / 353.8 MB, free: 9.035 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001636/0.1026, allocations: 107.8 kB / 353.9 MB, free: 8.93 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.1026, allocations: 0 / 353.9 MB, free: 8.93 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1026, allocations: 0 / 353.9 MB, free: 8.93 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.1027, allocations: 4 kB / 353.9 MB, free: 8.926 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.0008488/0.1035, allocations: 490.8 kB / 354.4 MB, free: 8.395 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.1036, allocations: 12.03 kB / 354.4 MB, free: 8.383 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.589e-05/0.1036, allocations: 50.5 kB / 354.4 MB, free: 8.324 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.491e-05/0.1037, allocations: 23.72 kB / 354.4 MB, free: 8.301 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002489/0.1039, allocations: 238.5 kB / 354.7 MB, free: 8.027 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.104, allocations: 12.28 kB / 354.7 MB, free: 8.016 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.336e-05/0.104, allocations: 19.94 kB / 354.7 MB, free: 7.996 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003445/0.1043, allocations: 194.9 kB / 354.9 MB, free: 7.789 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.1044, allocations: 4 kB / 354.9 MB, free: 7.785 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.099e-05/0.1044, allocations: 11.94 kB / 354.9 MB, free: 7.773 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/0.1044, allocations: 8 kB / 354.9 MB, free: 7.766 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002891/0.1047, allocations: 147.8 kB / 355.1 MB, free: 7.621 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001067/0.1058, allocations: 0.7897 MB / 355.9 MB, free: 6.77 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002959/0.1061, allocations: 173.1 kB / 356 MB, free: 6.582 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.597e-05/0.1061, allocations: 4 kB / 356 MB, free: 6.578 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002426/0.1064, allocations: 149.2 kB / 356.2 MB, free: 6.414 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.1064, allocations: 0 / 356.2 MB, free: 6.414 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005449/0.107, allocations: 265.3 kB / 356.4 MB, free: 6.148 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.201e-05/0.107, allocations: 85.11 kB / 356.5 MB, free: 6.047 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002228/0.1072, allocations: 199 kB / 356.7 MB, free: 5.844 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.219e-05/0.1073, allocations: 29.7 kB / 356.7 MB, free: 5.809 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.29e-05/0.1074, allocations: 148 kB / 356.9 MB, free: 5.66 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.956e-05/0.1074, allocations: 43.56 kB / 356.9 MB, free: 5.617 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.678e-06/0.1074, allocations: 7.938 kB / 356.9 MB, free: 5.609 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.1076, allocations: 326.8 kB / 357.3 MB, free: 5.281 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001513/0.1077, allocations: 75.95 kB / 357.3 MB, free: 5.207 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/0.1079, allocations: 130.8 kB / 357.5 MB, free: 5.055 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001576/0.1081, allocations: 83.97 kB / 357.5 MB, free: 4.973 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1081, allocations: 0 / 357.5 MB, free: 4.973 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004149/0.1085, allocations: 261.1 kB / 357.8 MB, free: 4.711 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.1085, allocations: 8 kB / 357.8 MB, free: 4.703 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.1085, allocations: 0 / 357.8 MB, free: 4.703 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.1086, allocations: 4 kB / 357.8 MB, free: 4.699 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001689/0.1087, allocations: 39.91 kB / 357.8 MB, free: 4.66 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/0.1088, allocations: 0 / 357.8 MB, free: 4.66 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/0.1089, allocations: 39.98 kB / 357.9 MB, free: 4.621 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.1089, allocations: 8.094 kB / 357.9 MB, free: 4.613 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.0001433/0.1091, allocations: 141.7 kB / 358 MB, free: 4.465 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.72e-05/0.1091, allocations: 19.77 kB / 358.1 MB, free: 4.445 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004458/0.1096, allocations: 223.7 kB / 358.3 MB, free: 4.215 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.1096, allocations: 4 kB / 358.3 MB, free: 4.211 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1096, allocations: 0 / 358.3 MB, free: 4.211 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.1096, allocations: 3.984 kB / 358.3 MB, free: 4.207 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002749/0.1099, allocations: 273.4 kB / 358.5 MB, free: 3.891 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1099, allocations: 0 / 358.5 MB, free: 3.891 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001193/0.11, allocations: 23.92 kB / 358.6 MB, free: 3.867 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.842e-06/0.1101, allocations: 11.95 kB / 358.6 MB, free: 3.855 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.1101, allocations: 0 / 358.6 MB, free: 3.855 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1101, allocations: 3.984 kB / 358.6 MB, free: 3.852 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1101, allocations: 0 / 358.6 MB, free: 3.852 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003899/0.1105, allocations: 245.7 kB / 358.8 MB, free: 3.586 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.992e-05/0.1105, allocations: 96.81 kB / 358.9 MB, free: 3.473 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.701e-05/0.1106, allocations: 0 / 358.9 MB, free: 3.473 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.1107, allocations: 27.97 kB / 358.9 MB, free: 3.445 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.818e-05/0.1108, allocations: 15.92 kB / 359 MB, free: 3.43 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.1108, allocations: 8 kB / 359 MB, free: 3.422 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001126/0.1109, allocations: 144.6 kB / 359.1 MB, free: 3.281 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1109, allocations: 0 / 359.1 MB, free: 3.281 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002641/0.1112, allocations: 39.91 kB / 359.2 MB, free: 3.242 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.0007911/0.112, allocations: 0.8596 MB / 360 MB, free: 2.348 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003924/0.1124, allocations: 176 kB / 360.2 MB, free: 2.176 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1124, allocations: 0 / 360.2 MB, free: 2.176 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001668/0.1126, allocations: 83.89 kB / 360.3 MB, free: 2.094 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003032/0.1129, allocations: 39.95 kB / 360.3 MB, free: 2.055 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002063/0.115, allocations: 2.244 MB / 362.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003281/0.1153, allocations: 0.7438 MB / 363.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001129/0.1155, allocations: 41.45 kB / 363.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.861e-05/0.1155, allocations: 59.41 kB / 363.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1156, allocations: 0 / 363.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01476/0.1303, allocations: 3.583 MB / 367 MB, free: 11.41 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001827/0.1305, allocations: 176.8 kB / 367.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.745/1.875, allocations: 3.938 kB / 367.1 MB, free: 11.16 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