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.001276/0.001276, allocations: 119.5 kB / 18.41 MB, free: 4.555 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.001303/0.001303, allocations: 188.3 kB / 21.35 MB, free: 1.621 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.392/1.392, allocations: 222.9 MB / 247 MB, free: 4.23 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: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 51.92 kB / 358.7 MB, free: 8.406 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1017, allocations: 49.44 MB / 408.1 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003126/0.1048, allocations: 1.867 MB / 410 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001217/0.1061, allocations: 0.5882 MB / 410.5 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.1062, allocations: 4 kB / 410.6 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.1064, allocations: 31.61 kB / 410.6 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001501/0.1065, allocations: 35.66 kB / 410.6 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002688/0.1068, allocations: 59.88 kB / 410.7 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002343/0.1071, allocations: 171.4 kB / 410.8 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001823/0.1073, allocations: 65.64 kB / 410.9 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001277/0.1074, allocations: 75.7 kB / 411 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001523/0.1075, allocations: 79.56 kB / 411.1 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.595e-05/0.1076, allocations: 12 kB / 411.1 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.53e-05/0.1077, allocations: 27.92 kB / 411.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.372e-05/0.1078, allocations: 43.89 kB / 411.1 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.156e-05/0.1079, allocations: 79.48 kB / 411.2 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002836/0.1082, allocations: 191 kB / 411.4 MB, free: 3.598 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.1082, allocations: 4 kB / 411.4 MB, free: 3.594 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1082, allocations: 0 / 411.4 MB, free: 3.594 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.331e-06/0.1082, allocations: 0 / 411.4 MB, free: 3.594 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.0009522/0.1092, allocations: 0.5104 MB / 411.9 MB, free: 3.031 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.1092, allocations: 8.031 kB / 411.9 MB, free: 3.023 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.138e-05/0.1093, allocations: 24.8 kB / 412 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002984/0.1096, allocations: 243.8 kB / 412.2 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.1096, allocations: 12.66 kB / 412.2 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.534e-05/0.1096, allocations: 15.94 kB / 412.2 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003651/0.11, allocations: 202.9 kB / 412.4 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.11, allocations: 0 / 412.4 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.128e-05/0.11, allocations: 8 kB / 412.4 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.227e-05/0.1101, allocations: 7.938 kB / 412.4 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003058/0.1104, allocations: 135.9 kB / 412.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001122/0.1115, allocations: 0.7779 MB / 413.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000337/0.1119, allocations: 165 kB / 413.5 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001568/0.112, allocations: 73.8 kB / 413.6 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.32e-05/0.1121, allocations: 7.984 kB / 413.6 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002871/0.1124, allocations: 153.3 kB / 413.7 MB, free: 1.059 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.363e-06/0.1124, allocations: 0 / 413.7 MB, free: 1.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000622/0.113, allocations: 253.4 kB / 414 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.679e-05/0.1131, allocations: 81.05 kB / 414.1 MB, free: 0.707 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002192/0.1133, allocations: 203 kB / 414.3 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.1134, allocations: 37.7 kB / 414.3 MB, free: 464 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.1135, allocations: 148.2 kB / 414.4 MB, free: 312 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.885e-05/0.1135, allocations: 39.66 kB / 414.5 MB, free: 272 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.675e-05/0.1136, allocations: 45.7 kB / 414.5 MB, free: 220 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.1138, allocations: 334.8 kB / 414.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001596/0.1139, allocations: 67.95 kB / 414.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001987/0.1142, allocations: 129 kB / 415 MB, free: 15.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003462/0.1145, allocations: 202.7 kB / 415.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.1145, allocations: 0 / 415.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004469/0.115, allocations: 241.3 kB / 415.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.115, allocations: 8.188 kB / 415.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.115, allocations: 4 kB / 415.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.115, allocations: 4 kB / 415.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.1152, allocations: 39.91 kB / 415.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.1152, allocations: 4.703 kB / 415.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001614/0.1154, allocations: 23.88 kB / 415.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.153e-05/0.1154, allocations: 15.98 kB / 415.6 MB, free: 15.1 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.0001526/0.1156, allocations: 146.2 kB / 415.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.194e-05/0.1156, allocations: 19.91 kB / 415.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000537/0.1162, allocations: 210.9 kB / 415.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.1162, allocations: 4 kB / 415.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.1162, allocations: 3.984 kB / 415.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.1162, allocations: 112 / 415.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003401/0.1166, allocations: 277.5 kB / 416.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1166, allocations: 3.938 kB / 416.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001169/0.1167, allocations: 19.98 kB / 416.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.1167, allocations: 4 kB / 416.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.398e-05/0.1167, allocations: 11.98 kB / 416.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.1167, allocations: 3.938 kB / 416.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.1168, allocations: 0 / 416.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004344/0.1172, allocations: 225.7 kB / 416.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.868e-05/0.1173, allocations: 92.95 kB / 416.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.047e-05/0.1173, allocations: 8 kB / 416.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.1175, allocations: 19.97 kB / 416.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.792e-05/0.1175, allocations: 11.98 kB / 416.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.1175, allocations: 4 kB / 416.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000147/0.1177, allocations: 156.3 kB / 416.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.914e-06/0.1177, allocations: 0 / 416.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000272/0.118, allocations: 43.83 kB / 416.8 MB, free: 13.75 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.0001617/0.1182, allocations: 112.4 kB / 416.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004219/0.1186, allocations: 175.8 kB / 417.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1186, allocations: 0 / 417.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001947/0.1188, allocations: 83.89 kB / 417.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003266/0.1191, allocations: 46.17 kB / 417.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007319/0.1199, allocations: 398.8 kB / 417.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/0.1203, allocations: 0.7319 MB / 418.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.96e-05/0.1204, allocations: 31.42 kB / 418.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1204, allocations: 0 / 418.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of Templates: time 0.004943/0.1254, allocations: 2.428 MB / 420.8 MB, free: 9.715 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] 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: 7.477229055017233]