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.001474/0.001474, allocations: 106.4 kB / 16.62 MB, free: 6.734 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.001539/0.001539, allocations: 197.8 kB / 17.55 MB, free: 5.914 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.373/1.373, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001024/0.001024, allocations: 50.17 kB / 300.2 MB, free: 6.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0948/0.09584, allocations: 49.45 MB / 349.7 MB, free: 4.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003204/0.09909, allocations: 1.909 MB / 351.6 MB, free: 2.668 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.1003, allocations: 0.5804 MB / 352.2 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001591/0.1005, allocations: 0 / 352.2 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001611/0.1007, allocations: 19.8 kB / 352.2 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001905/0.1009, allocations: 27.78 kB / 352.2 MB, free: 2.039 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003501/0.1012, allocations: 59.89 kB / 352.3 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002788/0.1015, allocations: 167.3 kB / 352.4 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001809/0.1017, allocations: 61.64 kB / 352.5 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001276/0.1019, allocations: 75.64 kB / 352.6 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001487/0.102, allocations: 79.62 kB / 352.6 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.873e-05/0.1021, allocations: 12 kB / 352.7 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.509e-05/0.1021, allocations: 19.98 kB / 352.7 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.253e-05/0.1022, allocations: 47.83 kB / 352.7 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.941e-05/0.1023, allocations: 79.48 kB / 352.8 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002282/0.1025, allocations: 179.6 kB / 353 MB, free: 1.273 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1025, allocations: 4 kB / 353 MB, free: 1.27 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1026, allocations: 3.938 kB / 353 MB, free: 1.266 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.1026, allocations: 0 / 353 MB, free: 1.266 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.0008001/0.1034, allocations: 0.4911 MB / 353.5 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.1034, allocations: 8.031 kB / 353.5 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.392e-05/0.1035, allocations: 50.73 kB / 353.5 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.28e-05/0.1035, allocations: 28.59 kB / 353.6 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002446/0.1038, allocations: 239.7 kB / 353.8 MB, free: 364 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.1038, allocations: 16.59 kB / 353.8 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.761e-05/0.1038, allocations: 23.91 kB / 353.8 MB, free: 324 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003595/0.1042, allocations: 191.8 kB / 354 MB, free: 116 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.1042, allocations: 0 / 354 MB, free: 116 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.1043, allocations: 8 kB / 354 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.126e-05/0.1043, allocations: 11.98 kB / 354 MB, free: 96 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003081/0.1046, allocations: 147.9 kB / 354.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.1056, allocations: 0.77 MB / 355 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002991/0.1059, allocations: 165.1 kB / 355.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001446/0.1061, allocations: 89.72 kB / 355.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.522e-05/0.1061, allocations: 4.141 kB / 355.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002596/0.1064, allocations: 152.9 kB / 355.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.876e-06/0.1064, allocations: 112 / 355.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005358/0.107, allocations: 257.2 kB / 355.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/0.107, allocations: 81.11 kB / 355.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001664/0.1072, allocations: 199 kB / 355.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/0.1072, allocations: 33.7 kB / 355.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.433e-05/0.1073, allocations: 140.1 kB / 356.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.398e-05/0.1074, allocations: 43.45 kB / 356.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.586e-05/0.1074, allocations: 45.7 kB / 356.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.1075, allocations: 334.8 kB / 356.5 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.1077, allocations: 67.95 kB / 356.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000171/0.1079, allocations: 128.4 kB / 356.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003023/0.1082, allocations: 206.7 kB / 356.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1082, allocations: 0 / 356.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004097/0.1086, allocations: 241.1 kB / 357.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.1086, allocations: 4.094 kB / 357.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.1086, allocations: 7.938 kB / 357.1 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.1087, allocations: 4.188 kB / 357.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001674/0.1088, allocations: 39.91 kB / 357.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.1089, allocations: 4 kB / 357.2 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001555/0.109, allocations: 23.83 kB / 357.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.614e-05/0.109, allocations: 12 kB / 357.2 MB, free: 12.73 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,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.0001192/0.1092, allocations: 145.6 kB / 357.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.883e-05/0.1092, allocations: 19.81 kB / 357.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004177/0.1096, allocations: 215.7 kB / 357.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.1096, allocations: 0 / 357.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.1096, allocations: 4 kB / 357.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.1097, allocations: 0 / 357.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002313/0.1099, allocations: 273.4 kB / 357.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1099, allocations: 0 / 357.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001097/0.11, allocations: 19.98 kB / 357.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.618e-06/0.11, allocations: 4 kB / 357.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.11, allocations: 4 kB / 357.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.1101, allocations: 4 kB / 357.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.1101, allocations: 4 kB / 357.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003759/0.1104, allocations: 225.5 kB / 358.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.738e-05/0.1105, allocations: 96.91 kB / 358.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.994e-05/0.1105, allocations: 8 kB / 358.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.1107, allocations: 19.92 kB / 358.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.608e-05/0.1107, allocations: 19.97 kB / 358.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.1108, allocations: 4 kB / 358.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001114/0.1109, allocations: 148.5 kB / 358.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1109, allocations: 0 / 358.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002562/0.1111, allocations: 39.84 kB / 358.4 MB, free: 11.39 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 (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.0006481/0.1118, allocations: 0.7719 MB / 359.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003736/0.1122, allocations: 179.8 kB / 359.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1122, allocations: 384 / 359.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001708/0.1124, allocations: 91.89 kB / 359.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003351/0.1127, allocations: 42.84 kB / 359.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002432/0.1152, allocations: 2.239 MB / 361.7 MB, free: 7.914 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.1154, allocations: 0.7358 MB / 362.5 MB, free: 7.152 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001095/0.1155, allocations: 33.52 kB / 362.5 MB, free: 7.121 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.624e-05/0.1156, allocations: 59.42 kB / 362.6 MB, free: 7.062 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1156, allocations: 0 / 362.6 MB, free: 7.062 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01338/0.129, allocations: 3.848 MB / 366.4 MB, free: 3.324 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001788/0.1292, allocations: 189.3 kB / 366.6 MB, free: 3.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.865/1.994, allocations: 0 / 366.6 MB, free: 3.07 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/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) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches