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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001814/0.001814, allocations: 115.9 kB / 17.74 MB, free: 5.355 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001981/0.001981, allocations: 185.3 kB / 20.68 MB, free: 2.422 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 222.9 MB / 246.4 MB, free: 4.211 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 51.92 kB / 357.5 MB, free: 8.949 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09732/0.09877, allocations: 49.43 MB / 406.9 MB, free: 7.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003009/0.1018, allocations: 1.872 MB / 408.8 MB, free: 5.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001159/0.103, allocations: 0.5843 MB / 409.4 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.1031, allocations: 7.938 kB / 409.4 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001475/0.1033, allocations: 23.73 kB / 409.4 MB, free: 4.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001556/0.1034, allocations: 31.66 kB / 409.4 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003092/0.1038, allocations: 71.8 kB / 409.5 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002483/0.104, allocations: 167.4 kB / 409.7 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001988/0.1042, allocations: 65.92 kB / 409.7 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.1044, allocations: 75.64 kB / 409.8 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001715/0.1045, allocations: 83.61 kB / 409.9 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.742e-05/0.1046, allocations: 16 kB / 409.9 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.961e-05/0.1047, allocations: 16 kB / 409.9 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.241e-05/0.1048, allocations: 43.83 kB / 410 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.569e-05/0.1049, allocations: 83.47 kB / 410 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003048/0.1052, allocations: 191 kB / 410.2 MB, free: 4.148 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.1052, allocations: 0 / 410.2 MB, free: 4.148 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1052, allocations: 3.938 kB / 410.2 MB, free: 4.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.1052, allocations: 0 / 410.2 MB, free: 4.145 MB / 334.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.0009701/0.1062, allocations: 0.5026 MB / 410.7 MB, free: 3.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.1063, allocations: 12.03 kB / 410.8 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.297e-05/0.1063, allocations: 46.73 kB / 410.8 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.295e-05/0.1064, allocations: 28.73 kB / 410.8 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003115/0.1067, allocations: 247.8 kB / 411.1 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.661e-05/0.1068, allocations: 16.41 kB / 411.1 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/0.1068, allocations: 12 kB / 411.1 MB, free: 3.188 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003868/0.1072, allocations: 206.8 kB / 411.3 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.1072, allocations: 0 / 411.3 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/0.1072, allocations: 8 kB / 411.3 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/0.1073, allocations: 4 kB / 411.3 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003094/0.1076, allocations: 139.8 kB / 411.4 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.1087, allocations: 0.7702 MB / 412.2 MB, free: 1.988 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003241/0.109, allocations: 169 kB / 412.4 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001439/0.1092, allocations: 69.81 kB / 412.4 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.094e-05/0.1092, allocations: 8.141 kB / 412.5 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002749/0.1095, allocations: 159.1 kB / 412.6 MB, free: 1.551 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 3.406e-06/0.1095, allocations: 112 / 412.6 MB, free: 1.551 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000632/0.1102, allocations: 261.3 kB / 412.9 MB, free: 1.289 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.07e-05/0.1103, allocations: 77.11 kB / 412.9 MB, free: 1.195 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002419/0.1105, allocations: 199 kB / 413.1 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.436e-05/0.1105, allocations: 37.7 kB / 413.2 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.1107, allocations: 144.2 kB / 413.3 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.857e-05/0.1107, allocations: 43.64 kB / 413.4 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.247e-05/0.1108, allocations: 45.7 kB / 413.4 MB, free: 0.707 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.111, allocations: 330.8 kB / 413.7 MB, free: 384 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001598/0.1112, allocations: 67.95 kB / 413.8 MB, free: 316 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002129/0.1114, allocations: 129 kB / 413.9 MB, free: 164 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003842/0.1118, allocations: 206.8 kB / 414.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.1118, allocations: 0 / 414.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004486/0.1123, allocations: 241.3 kB / 414.4 MB, free: 15.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.1123, allocations: 8.188 kB / 414.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.1123, allocations: 4 kB / 414.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.313e-05/0.1123, allocations: 7.984 kB / 414.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001767/0.1125, allocations: 35.92 kB / 414.4 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.1125, allocations: 4 kB / 414.4 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001605/0.1127, allocations: 27.86 kB / 414.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.1127, allocations: 11.94 kB / 414.5 MB, free: 15.59 MB / 350.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.0001342/0.1129, allocations: 146.3 kB / 414.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.747e-05/0.1129, allocations: 19.91 kB / 414.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004436/0.1133, allocations: 219.6 kB / 414.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.1134, allocations: 4 kB / 414.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1134, allocations: 0 / 414.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.1134, allocations: 0 / 414.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003006/0.1137, allocations: 273.5 kB / 415.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.1137, allocations: 3.938 kB / 415.1 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001104/0.1138, allocations: 23.92 kB / 415.1 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/0.1138, allocations: 8 kB / 415.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.606e-05/0.1139, allocations: 8 kB / 415.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1139, allocations: 0 / 415.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1139, allocations: 0 / 415.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003951/0.1143, allocations: 225.6 kB / 415.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.521e-05/0.1143, allocations: 96.95 kB / 415.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.881e-05/0.1144, allocations: 11.98 kB / 415.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001355/0.1145, allocations: 23.81 kB / 415.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.535e-05/0.1146, allocations: 15.97 kB / 415.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.1146, allocations: 7.938 kB / 415.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001327/0.1147, allocations: 148.4 kB / 415.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1147, allocations: 0 / 415.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002482/0.115, allocations: 39.89 kB / 415.7 MB, free: 14.24 MB / 350.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.0007703/0.1158, allocations: 0.7654 MB / 416.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003883/0.1162, allocations: 178.1 kB / 416.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1162, allocations: 4.062 kB / 416.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001754/0.1164, allocations: 79.89 kB / 416.7 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003362/0.1167, allocations: 40.11 kB / 416.8 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002783/0.1195, allocations: 2.174 MB / 418.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.1199, allocations: 0.7397 MB / 419.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001095/0.12, allocations: 37.5 kB / 419.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001062/0.1201, allocations: 59.41 kB / 419.8 MB, free: 9.984 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1202, allocations: 0 / 419.8 MB, free: 9.984 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02547/0.1456, allocations: 4.106 MB / 423.9 MB, free: 5.969 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.015/8.16, allocations: 5.625 kB / 423.9 MB, free: 5.969 MB / 350.1 MB " [Timeout remaining time 652] (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 --stepSize=0.00198965 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.754307253984734]