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.0007083/0.0007084, allocations: 97.3 kB / 17.3 MB, free: 6.395 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.000758/0.0007582, allocations: 179.6 kB / 18.21 MB, free: 5.551 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.322/1.322, allocations: 205.4 MB / 224.4 MB, free: 13.09 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.0004599/0.0004599, allocations: 8 kB / 281.5 MB, free: 3.336 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1007, allocations: 47.58 MB / 329 MB, free: 3.68 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001999/0.1027, allocations: 1.563 MB / 330.6 MB, free: 2.102 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.1038, allocations: 0.6126 MB / 331.2 MB, free: 1.48 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001034/0.1039, allocations: 3.938 kB / 331.2 MB, free: 1.477 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.1041, allocations: 15.86 kB / 331.2 MB, free: 1.461 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001479/0.1042, allocations: 31.72 kB / 331.3 MB, free: 1.43 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002266/0.1045, allocations: 51.95 kB / 331.3 MB, free: 1.379 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001993/0.1047, allocations: 159.4 kB / 331.5 MB, free: 1.223 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001617/0.1048, allocations: 65.42 kB / 331.5 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.105, allocations: 55.72 kB / 331.6 MB, free: 1.102 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001215/0.1051, allocations: 71.56 kB / 331.7 MB, free: 1.031 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.237e-05/0.1051, allocations: 4 kB / 331.7 MB, free: 1.027 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.961e-05/0.1052, allocations: 15.98 kB / 331.7 MB, free: 1.012 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.246e-05/0.1053, allocations: 31.86 kB / 331.7 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.856e-05/0.1054, allocations: 89.23 kB / 331.8 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001925/0.1056, allocations: 163.5 kB / 332 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1056, allocations: 3.984 kB / 332 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1056, allocations: 0 / 332 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.1056, allocations: 0 / 332 MB, free: 0.7227 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.0008327/0.1064, allocations: 495 kB / 332.5 MB, free: 196 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.1065, allocations: 8.031 kB / 332.5 MB, free: 188 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.566e-05/0.1065, allocations: 46.73 kB / 332.5 MB, free: 132 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.482e-05/0.1066, allocations: 24.66 kB / 332.5 MB, free: 108 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002573/0.1069, allocations: 239.7 kB / 332.8 MB, free: 15.83 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.1069, allocations: 12.66 kB / 332.8 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.382e-05/0.1069, allocations: 12.38 kB / 332.8 MB, free: 15.81 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003745/0.1073, allocations: 207 kB / 333 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.1073, allocations: 0 / 333 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.1073, allocations: 12 kB / 333 MB, free: 15.58 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.648e-05/0.1074, allocations: 8 kB / 333 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003158/0.1077, allocations: 155.8 kB / 333.2 MB, free: 15.42 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.1087, allocations: 0.7972 MB / 334 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003045/0.1091, allocations: 169.1 kB / 334.1 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.1092, allocations: 73.81 kB / 334.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.533e-05/0.1093, allocations: 4 kB / 334.2 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002514/0.1095, allocations: 153 kB / 334.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.222e-06/0.1095, allocations: 0 / 334.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005547/0.1101, allocations: 269.4 kB / 334.6 MB, free: 13.86 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/0.1102, allocations: 89.11 kB / 334.7 MB, free: 13.75 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001835/0.1104, allocations: 202.9 kB / 334.9 MB, free: 13.54 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.1104, allocations: 29.7 kB / 334.9 MB, free: 13.51 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.749e-05/0.1105, allocations: 136.2 kB / 335.1 MB, free: 13.37 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.893e-05/0.1105, allocations: 47.34 kB / 335.1 MB, free: 13.32 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.85e-05/0.1106, allocations: 25.72 kB / 335.1 MB, free: 13.29 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.1107, allocations: 334.8 kB / 335.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001513/0.1109, allocations: 75.95 kB / 335.5 MB, free: 12.88 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/0.1111, allocations: 130.8 kB / 335.7 MB, free: 12.73 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003433/0.1114, allocations: 210.7 kB / 335.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1114, allocations: 0 / 335.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004156/0.1119, allocations: 245.2 kB / 336.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.1119, allocations: 8.188 kB / 336.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.1119, allocations: 4 kB / 336.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.1119, allocations: 0 / 336.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.1121, allocations: 39.97 kB / 336.2 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/0.1121, allocations: 7.938 kB / 336.2 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001545/0.1123, allocations: 31.83 kB / 336.2 MB, free: 12.16 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.809e-05/0.1123, allocations: 12.08 kB / 336.2 MB, free: 12.15 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,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001341/0.1124, allocations: 149.6 kB / 336.4 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.897e-05/0.1125, allocations: 19.81 kB / 336.4 MB, free: 11.97 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004379/0.1129, allocations: 223.6 kB / 336.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1129, allocations: 7.984 kB / 336.6 MB, free: 11.74 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.1129, allocations: 0 / 336.6 MB, free: 11.74 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.113, allocations: 4 kB / 336.6 MB, free: 11.73 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002635/0.1132, allocations: 265.4 kB / 336.9 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1132, allocations: 0 / 336.9 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.1133, allocations: 23.98 kB / 336.9 MB, free: 11.4 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.1134, allocations: 112 / 336.9 MB, free: 11.4 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.1134, allocations: 11.92 kB / 336.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1134, allocations: 4 kB / 336.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.1134, allocations: 0 / 336.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003763/0.1138, allocations: 240.9 kB / 337.1 MB, free: 11.13 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.221e-05/0.1138, allocations: 96.83 kB / 337.2 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.735e-05/0.1139, allocations: 4 kB / 337.2 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001387/0.114, allocations: 31.97 kB / 337.3 MB, free: 10.98 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.175e-05/0.1141, allocations: 15.98 kB / 337.3 MB, free: 10.97 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.203e-05/0.1141, allocations: 7.984 kB / 337.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001242/0.1142, allocations: 140.6 kB / 337.4 MB, free: 10.82 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1143, allocations: 0 / 337.4 MB, free: 10.82 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002494/0.1145, allocations: 39.94 kB / 337.5 MB, free: 10.79 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007555/0.1153, allocations: 0.7731 MB / 338.2 MB, free: 9.98 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003734/0.1157, allocations: 191.8 kB / 338.4 MB, free: 9.793 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1157, allocations: 0 / 338.4 MB, free: 9.793 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001739/0.1158, allocations: 84.27 kB / 338.5 MB, free: 9.711 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003385/0.1162, allocations: 43.92 kB / 338.6 MB, free: 9.668 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002557/0.1188, allocations: 2.263 MB / 340.8 MB, free: 7.273 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.1191, allocations: 0.7319 MB / 341.5 MB, free: 6.516 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001134/0.1192, allocations: 33.53 kB / 341.6 MB, free: 6.484 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.1193, allocations: 63.41 kB / 341.6 MB, free: 6.422 MB / 286.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1193, allocations: 0 / 341.6 MB, free: 6.422 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01495/0.1343, allocations: 3.648 MB / 345.3 MB, free: 2.777 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002149/0.1345, allocations: 190.1 kB / 345.5 MB, free: 2.516 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.974/2.109, allocations: 8 kB / 345.5 MB, free: 2.508 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/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) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches