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.00085/0.0008502, allocations: 95.39 kB / 16.95 MB, free: 6.105 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.0008593/0.0008593, allocations: 178.4 kB / 17.84 MB, free: 5.727 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.694/1.694, allocations: 205.4 MB / 224 MB, free: 13.15 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.0004889/0.000489, allocations: 22.95 kB / 280.9 MB, free: 3.633 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1032, allocations: 47.57 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002222/0.1055, allocations: 1.521 MB / 330 MB, free: 2.457 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.1068, allocations: 0.5894 MB / 330.6 MB, free: 1.859 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001547/0.1069, allocations: 4 kB / 330.6 MB, free: 1.855 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001331/0.1071, allocations: 15.8 kB / 330.6 MB, free: 1.84 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001819/0.1073, allocations: 35.78 kB / 330.6 MB, free: 1.805 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003214/0.1076, allocations: 51.88 kB / 330.7 MB, free: 1.754 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002427/0.1079, allocations: 143.5 kB / 330.8 MB, free: 1.613 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001892/0.1081, allocations: 61.42 kB / 330.9 MB, free: 1.551 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001494/0.1082, allocations: 55.7 kB / 330.9 MB, free: 1.496 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001491/0.1084, allocations: 63.64 kB / 331 MB, free: 1.434 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.724e-05/0.1084, allocations: 4 kB / 331 MB, free: 1.43 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.085e-05/0.1085, allocations: 8 kB / 331 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.28e-05/0.1086, allocations: 35.84 kB / 331 MB, free: 1.387 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.859e-05/0.1087, allocations: 53.58 kB / 331.1 MB, free: 1.328 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001811/0.1089, allocations: 119.9 kB / 331.2 MB, free: 1.211 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.1089, allocations: 0 / 331.2 MB, free: 1.211 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1089, allocations: 0 / 331.2 MB, free: 1.211 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.294e-05/0.1089, allocations: 4 kB / 331.2 MB, free: 1.207 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.0009902/0.1099, allocations: 490.8 kB / 331.7 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.11, allocations: 16.03 kB / 331.7 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.41e-05/0.11, allocations: 50.55 kB / 331.7 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.248e-05/0.1101, allocations: 19.72 kB / 331.8 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003023/0.1104, allocations: 230.5 kB / 332 MB, free: 328 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.824e-05/0.1105, allocations: 12.28 kB / 332 MB, free: 316 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.001e-05/0.1105, allocations: 12 kB / 332 MB, free: 304 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003707/0.1109, allocations: 199 kB / 332.2 MB, free: 88 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.1109, allocations: 0 / 332.2 MB, free: 88 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.179e-05/0.1109, allocations: 11.94 kB / 332.2 MB, free: 76 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.325e-05/0.1109, allocations: 4 kB / 332.2 MB, free: 72 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003417/0.1113, allocations: 151.9 kB / 332.4 MB, free: 15.92 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001204/0.1125, allocations: 0.7972 MB / 333.2 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003303/0.1129, allocations: 177 kB / 333.3 MB, free: 14.87 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001642/0.113, allocations: 77.8 kB / 333.4 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.038e-05/0.1131, allocations: 8 kB / 333.4 MB, free: 14.78 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000276/0.1134, allocations: 148.6 kB / 333.6 MB, free: 14.62 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.1134, allocations: 3.938 kB / 333.6 MB, free: 14.62 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.00065/0.114, allocations: 266.2 kB / 333.8 MB, free: 14.35 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.238e-05/0.1141, allocations: 89 kB / 333.9 MB, free: 14.25 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002161/0.1144, allocations: 195 kB / 334.1 MB, free: 14.05 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.996e-05/0.1144, allocations: 33.7 kB / 334.1 MB, free: 14.01 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.1145, allocations: 140.1 kB / 334.3 MB, free: 13.86 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.584e-05/0.1146, allocations: 43.45 kB / 334.3 MB, free: 13.82 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.728e-06/0.1146, allocations: 0 / 334.3 MB, free: 13.82 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.1148, allocations: 334.8 kB / 334.6 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001681/0.1149, allocations: 75.95 kB / 334.7 MB, free: 13.41 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001893/0.1151, allocations: 131 kB / 334.8 MB, free: 13.26 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001832/0.1153, allocations: 87.88 kB / 334.9 MB, free: 13.17 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1153, allocations: 0 / 334.9 MB, free: 13.17 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004473/0.1158, allocations: 257.1 kB / 335.2 MB, free: 12.91 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.1158, allocations: 4 kB / 335.2 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.1158, allocations: 0 / 335.2 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.1159, allocations: 4 kB / 335.2 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001729/0.116, allocations: 40.11 kB / 335.2 MB, free: 12.87 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.1161, allocations: 7.953 kB / 335.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/0.1162, allocations: 35.81 kB / 335.3 MB, free: 12.82 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.224e-05/0.1163, allocations: 12 kB / 335.3 MB, free: 12.81 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.0001607/0.1164, allocations: 141.7 kB / 335.4 MB, free: 12.66 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.039e-05/0.1165, allocations: 19.81 kB / 335.4 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004571/0.1169, allocations: 218.9 kB / 335.7 MB, free: 12.42 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.117, allocations: 4.109 kB / 335.7 MB, free: 12.42 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.117, allocations: 4.031 kB / 335.7 MB, free: 12.41 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.117, allocations: 7.891 kB / 335.7 MB, free: 12.41 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003016/0.1173, allocations: 269.5 kB / 335.9 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.1173, allocations: 3.984 kB / 335.9 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001116/0.1174, allocations: 23.98 kB / 336 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.753e-06/0.1174, allocations: 4 kB / 336 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.1175, allocations: 0 / 336 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.1175, allocations: 0 / 336 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-05/0.1175, allocations: 4 kB / 336 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004148/0.1179, allocations: 237.5 kB / 336.2 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.539e-05/0.118, allocations: 92.92 kB / 336.3 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.802e-05/0.118, allocations: 0 / 336.3 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.1182, allocations: 31.97 kB / 336.3 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.907e-05/0.1182, allocations: 15.97 kB / 336.3 MB, free: 11.65 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/0.1183, allocations: 4 kB / 336.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001419/0.1184, allocations: 144.4 kB / 336.5 MB, free: 11.5 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1184, allocations: 4 kB / 336.5 MB, free: 11.5 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002879/0.1187, allocations: 39.84 kB / 336.5 MB, free: 11.46 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.000872/0.1196, allocations: 0.7769 MB / 337.3 MB, free: 10.65 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003737/0.12, allocations: 179.8 kB / 337.5 MB, free: 10.48 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.12, allocations: 0 / 337.5 MB, free: 10.48 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001758/0.1202, allocations: 83.89 kB / 337.6 MB, free: 10.39 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003436/0.1205, allocations: 44.89 kB / 337.6 MB, free: 10.35 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001932/0.1225, allocations: 1.205 MB / 338.8 MB, free: 9.074 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000331/0.1228, allocations: 0.7321 MB / 339.5 MB, free: 8.316 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001305/0.123, allocations: 37.52 kB / 339.6 MB, free: 8.281 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.1231, allocations: 63.41 kB / 339.6 MB, free: 8.219 MB / 286.1 MB Notification: Performance of SimCode: time 8.72e-07/0.1231, allocations: 192 / 339.6 MB, free: 8.219 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01735/0.1404, allocations: 3.618 MB / 343.3 MB, free: 4.609 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001866/0.1407, allocations: 176.9 kB / 343.4 MB, free: 4.363 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.977/2.117, allocations: 4.062 kB / 343.4 MB, free: 4.359 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