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.001413/0.001413, allocations: 71.91 kB / 21.24 MB, free: 0.5469 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.001391/0.001391, allocations: 152 kB / 24.49 MB, free: 3.73 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.427/1.427, allocations: 173.4 MB / 201.1 MB, free: 12.7 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.001553/0.001553, allocations: 43.45 kB / 319.4 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09825/0.09981, allocations: 52.17 MB / 371.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003137/0.1029, allocations: 1.814 MB / 373.4 MB, free: 5.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00111/0.1041, allocations: 0.5533 MB / 373.9 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.1042, allocations: 3.938 kB / 373.9 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001285/0.1043, allocations: 35.66 kB / 374 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001457/0.1044, allocations: 31.66 kB / 374 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002846/0.1047, allocations: 67.88 kB / 374.1 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002958/0.105, allocations: 167.4 kB / 374.2 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001642/0.1052, allocations: 45.89 kB / 374.3 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001344/0.1053, allocations: 83.62 kB / 374.4 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001588/0.1055, allocations: 71.62 kB / 374.4 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.166e-05/0.1055, allocations: 12 kB / 374.4 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.624e-05/0.1056, allocations: 23.98 kB / 374.5 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.949e-05/0.1057, allocations: 47.83 kB / 374.5 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.65e-05/0.1058, allocations: 63.55 kB / 374.6 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003045/0.1061, allocations: 183.1 kB / 374.7 MB, free: 4.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1061, allocations: 0 / 374.7 MB, free: 4.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1061, allocations: 3.938 kB / 374.7 MB, free: 4.141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.1061, allocations: 4 kB / 374.8 MB, free: 4.137 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.0009543/0.107, allocations: 441.6 kB / 375.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.1071, allocations: 12.92 kB / 375.2 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.748e-05/0.1071, allocations: 24.73 kB / 375.2 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000304/0.1075, allocations: 186 kB / 375.4 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.1075, allocations: 12.66 kB / 375.4 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.72e-05/0.1075, allocations: 27.88 kB / 375.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004011/0.1079, allocations: 195.8 kB / 375.6 MB, free: 3.184 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.1079, allocations: 0 / 375.6 MB, free: 3.184 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/0.1079, allocations: 4 kB / 375.6 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.415e-05/0.108, allocations: 11.98 kB / 375.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003269/0.1083, allocations: 139.8 kB / 375.8 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.1094, allocations: 0.6801 MB / 376.5 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003179/0.1098, allocations: 149.1 kB / 376.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001595/0.1099, allocations: 81.73 kB / 376.7 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.472e-05/0.1099, allocations: 0 / 376.7 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002923/0.1102, allocations: 145.2 kB / 376.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.142e-06/0.1102, allocations: 0 / 376.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005923/0.1108, allocations: 265.6 kB / 377.1 MB, free: 1.633 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.748e-05/0.1109, allocations: 89.03 kB / 377.2 MB, free: 1.527 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001995/0.1111, allocations: 195.8 kB / 377.4 MB, free: 1.324 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.735e-05/0.1111, allocations: 33.69 kB / 377.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.1113, allocations: 144.3 kB / 377.5 MB, free: 1.141 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.067e-05/0.1113, allocations: 39.64 kB / 377.6 MB, free: 1.102 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.573e-05/0.1114, allocations: 45.7 kB / 377.6 MB, free: 1.051 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000249/0.1116, allocations: 338.8 kB / 378 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001615/0.1118, allocations: 75.95 kB / 378 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002814/0.1121, allocations: 126.8 kB / 378.2 MB, free: 500 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003658/0.1124, allocations: 198.7 kB / 378.4 MB, free: 276 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.1124, allocations: 4 kB / 378.4 MB, free: 272 kB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000458/0.1129, allocations: 241.3 kB / 378.6 MB, free: 24 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.1129, allocations: 10.81 kB / 378.6 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1129, allocations: 0 / 378.6 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.1129, allocations: 4 kB / 378.6 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001932/0.1131, allocations: 35.91 kB / 378.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.388e-06/0.1131, allocations: 4.188 kB / 378.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.1133, allocations: 31.88 kB / 378.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.972e-05/0.1133, allocations: 11.98 kB / 378.7 MB, free: 15.93 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.0001522/0.1135, allocations: 137.7 kB / 378.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.104e-05/0.1135, allocations: 15.91 kB / 378.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005049/0.114, allocations: 218.9 kB / 379.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.114, allocations: 0 / 379.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.114, allocations: 0 / 379.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.114, allocations: 7.984 kB / 379.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002386/0.1143, allocations: 193.2 kB / 379.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1143, allocations: 0 / 379.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.1144, allocations: 23.97 kB / 379.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.1144, allocations: 0 / 379.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.1144, allocations: 0 / 379.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.1144, allocations: 4.094 kB / 379.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1144, allocations: 4.797 kB / 379.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004294/0.1148, allocations: 237.6 kB / 379.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.206e-05/0.1149, allocations: 19.89 kB / 379.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.643e-05/0.1149, allocations: 4 kB / 379.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.115, allocations: 23.97 kB / 379.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.636e-05/0.1151, allocations: 19.91 kB / 379.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.1151, allocations: 4 kB / 379.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001381/0.1153, allocations: 141.5 kB / 379.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1153, allocations: 0 / 379.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000274/0.1155, allocations: 39.89 kB / 379.8 MB, free: 14.79 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.000151/0.1157, allocations: 107.2 kB / 379.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004002/0.1161, allocations: 171.8 kB / 380 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1161, allocations: 0 / 380 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002316/0.1163, allocations: 76.27 kB / 380.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003325/0.1166, allocations: 43.84 kB / 380.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007232/0.1174, allocations: 381.5 kB / 380.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001324/0.1175, allocations: 116.9 kB / 380.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001193/0.1176, allocations: 37.45 kB / 380.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.559e-05/0.1177, allocations: 20.5 kB / 380.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1177, allocations: 192 / 380.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of Templates: time 0.006053/0.1237, allocations: 2.199 MB / 382.9 MB, free: 11.64 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 -s ida -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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.232321907998994]