Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 69.72 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001439/0.001439, allocations: 162.5 kB / 24.5 MB, free: 3.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.409/1.409, allocations: 177.2 MB / 204.9 MB, free: 9 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 51.17 kB / 325.6 MB, free: 480 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09611/0.09765, allocations: 53.34 MB / 378.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004274/0.1019, allocations: 2.782 MB / 381.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.1032, allocations: 0.7206 MB / 382.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001636/0.1034, allocations: 11.94 kB / 382.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002048/0.1036, allocations: 59.42 kB / 382.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002678/0.1039, allocations: 111.1 kB / 382.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003173/0.1042, allocations: 111.8 kB / 382.7 MB, free: 12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004537/0.1047, allocations: 410.3 kB / 383.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002612/0.1049, allocations: 146.3 kB / 383.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001709/0.1051, allocations: 163.4 kB / 383.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002566/0.1053, allocations: 159.2 kB / 383.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.262e-05/0.1054, allocations: 40 kB / 383.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.1055, allocations: 59.98 kB / 383.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001582/0.1057, allocations: 111.6 kB / 383.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001735/0.1059, allocations: 163.2 kB / 383.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005579/0.1064, allocations: 0.4942 MB / 384.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1064, allocations: 0 / 384.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1064, allocations: 3.938 kB / 384.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.1064, allocations: 0 / 384.4 MB, free: 10.27 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001671/0.1081, allocations: 0.7234 MB / 385.1 MB, free: 9.516 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.1081, allocations: 11.97 kB / 385.1 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.828e-05/0.1082, allocations: 40.7 kB / 385.2 MB, free: 9.465 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005085/0.1087, allocations: 293.2 kB / 385.5 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.511e-05/0.1088, allocations: 33.03 kB / 385.5 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.752e-05/0.1088, allocations: 28.38 kB / 385.5 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006126/0.1094, allocations: 401.6 kB / 385.9 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.1094, allocations: 0 / 385.9 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.471e-05/0.1095, allocations: 12 kB / 385.9 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.1095, allocations: 8 kB / 385.9 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004529/0.1099, allocations: 238.5 kB / 386.2 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001762/0.1117, allocations: 1.103 MB / 387.3 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003742/0.1121, allocations: 162.6 kB / 387.4 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002526/0.1123, allocations: 116.7 kB / 387.5 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.986e-05/0.1124, allocations: 4 kB / 387.6 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.232e-05/0.1124, allocations: 38.5 kB / 387.6 MB, free: 6.914 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.452e-06/0.1124, allocations: 4 kB / 387.6 MB, free: 6.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004765/0.1129, allocations: 228.8 kB / 387.8 MB, free: 6.684 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.1129, allocations: 55.41 kB / 387.9 MB, free: 6.617 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003529/0.1133, allocations: 297.9 kB / 388.2 MB, free: 6.312 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.661e-05/0.1133, allocations: 29.7 kB / 388.2 MB, free: 6.277 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/0.1134, allocations: 216.3 kB / 388.4 MB, free: 6.062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.495e-05/0.1135, allocations: 59.48 kB / 388.5 MB, free: 6.004 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.483e-05/0.1136, allocations: 45.7 kB / 388.5 MB, free: 5.953 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1137, allocations: 334.8 kB / 388.8 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/0.1139, allocations: 71.91 kB / 388.9 MB, free: 5.547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001884/0.1141, allocations: 140.3 kB / 389 MB, free: 5.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002411/0.1143, allocations: 170.4 kB / 389.2 MB, free: 5.191 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1143, allocations: 3.938 kB / 389.2 MB, free: 5.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003936/0.1147, allocations: 241.2 kB / 389.4 MB, free: 4.945 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.1147, allocations: 4 kB / 389.4 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.1147, allocations: 7.938 kB / 389.5 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.1147, allocations: 0 / 389.5 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001883/0.1149, allocations: 51.91 kB / 389.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.1149, allocations: 4 kB / 389.5 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003906/0.1153, allocations: 72.02 kB / 389.6 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.788e-05/0.1153, allocations: 8 kB / 389.6 MB, free: 4.801 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,energy.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001646/0.1155, allocations: 149.8 kB / 389.7 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.842e-05/0.1156, allocations: 27.8 kB / 389.8 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004033/0.116, allocations: 203.6 kB / 390 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.116, allocations: 0 / 390 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.116, allocations: 0 / 390 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.116, allocations: 0 / 390 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007306/0.1167, allocations: 0.5107 MB / 390.5 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.1167, allocations: 8.031 kB / 390.5 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001563/0.1169, allocations: 23.98 kB / 390.5 MB, free: 3.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.1169, allocations: 4 kB / 390.5 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.817e-05/0.1169, allocations: 4 kB / 390.5 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1169, allocations: 0 / 390.5 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1169, allocations: 4 kB / 390.5 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005118/0.1174, allocations: 390 kB / 390.9 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.467e-05/0.1175, allocations: 27.81 kB / 390.9 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.943e-05/0.1175, allocations: 8 kB / 390.9 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004205/0.1179, allocations: 55.98 kB / 391 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/0.1181, allocations: 75.86 kB / 391.1 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.251e-05/0.1181, allocations: 8 kB / 391.1 MB, free: 3.246 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002325/0.1183, allocations: 217.2 kB / 391.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1183, allocations: 0 / 391.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003521/0.1187, allocations: 83.78 kB / 391.4 MB, free: 2.957 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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 Backend phase and start with SimCode phase: time 0.0001404/0.1188, allocations: 111.2 kB / 391.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003432/0.1192, allocations: 167.8 kB / 391.6 MB, free: 2.676 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1192, allocations: 4 kB / 391.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000192/0.1194, allocations: 103.9 kB / 391.7 MB, free: 2.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003742/0.1197, allocations: 52.27 kB / 391.8 MB, free: 2.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001356/0.1211, allocations: 0.7242 MB / 392.5 MB, free: 1.766 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001715/0.1213, allocations: 168.8 kB / 392.7 MB, free: 1.582 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001201/0.1214, allocations: 34.28 kB / 392.7 MB, free: 1.547 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.08e-05/0.1215, allocations: 28.5 kB / 392.7 MB, free: 1.52 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1215, allocations: 0 / 392.7 MB, free: 1.52 MB / 350.1 MB Notification: Performance of Templates: time 0.008686/0.1302, allocations: 4.301 MB / 397 MB, free: 13.27 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.838207141961902]