Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.001309/0.001309, allocations: 68.08 kB / 21.24 MB, free: 404 kB / 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.001355/0.001355, allocations: 155.4 kB / 24.48 MB, free: 3.461 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.395/1.395, allocations: 173.4 MB / 201.1 MB, free: 12.72 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.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001706/0.001706, allocations: 48.89 kB / 319.4 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09782/0.09953, allocations: 52.16 MB / 371.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004774/0.1043, allocations: 2.772 MB / 374.3 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001617/0.1059, allocations: 0.6894 MB / 375 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003063/0.1062, allocations: 7.938 kB / 375 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002922/0.1065, allocations: 63.44 kB / 375.1 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004072/0.1069, allocations: 115 kB / 375.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003811/0.1073, allocations: 103.9 kB / 375.3 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000668/0.108, allocations: 418.2 kB / 375.7 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000272/0.1082, allocations: 142.4 kB / 375.9 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002033/0.1084, allocations: 167.4 kB / 376 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000274/0.1087, allocations: 155.3 kB / 376.2 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.025e-05/0.1088, allocations: 44 kB / 376.2 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001327/0.1089, allocations: 63.92 kB / 376.3 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001612/0.1091, allocations: 107.7 kB / 376.4 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001807/0.1093, allocations: 171.2 kB / 376.5 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005811/0.1098, allocations: 0.4942 MB / 377 MB, free: 1.879 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.1098, allocations: 0 / 377 MB, free: 1.879 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1098, allocations: 0 / 377 MB, free: 1.879 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.1098, allocations: 0 / 377 MB, free: 1.879 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001752/0.1116, allocations: 0.7195 MB / 377.8 MB, free: 1.125 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.1116, allocations: 12.03 kB / 377.8 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.82e-05/0.1117, allocations: 40.7 kB / 377.8 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005088/0.1122, allocations: 297.2 kB / 378.1 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.657e-05/0.1123, allocations: 25.03 kB / 378.1 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.263e-05/0.1123, allocations: 28.38 kB / 378.2 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006226/0.1129, allocations: 401.6 kB / 378.5 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.1129, allocations: 3.984 kB / 378.6 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.063e-05/0.113, allocations: 8 kB / 378.6 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.113, allocations: 8 kB / 378.6 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005537/0.1135, allocations: 242.4 kB / 378.8 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001892/0.1154, allocations: 1.107 MB / 379.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003944/0.1158, allocations: 166.5 kB / 380.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002585/0.1161, allocations: 112.8 kB / 380.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.289e-05/0.1161, allocations: 8 kB / 380.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.07e-05/0.1161, allocations: 38.5 kB / 380.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.242e-06/0.1161, allocations: 0 / 380.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004915/0.1166, allocations: 237.6 kB / 380.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.1167, allocations: 51.41 kB / 380.5 MB, free: 14.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003569/0.117, allocations: 297.8 kB / 380.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/0.1171, allocations: 29.7 kB / 380.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.1172, allocations: 216.2 kB / 381 MB, free: 13.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.67e-05/0.1173, allocations: 63.5 kB / 381.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.95e-05/0.1174, allocations: 45.67 kB / 381.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.1176, allocations: 334.8 kB / 381.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001427/0.1177, allocations: 75.95 kB / 381.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.1179, allocations: 135.6 kB / 381.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002487/0.1181, allocations: 163.6 kB / 381.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1181, allocations: 0 / 381.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000414/0.1186, allocations: 248 kB / 382.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.1186, allocations: 8 kB / 382.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.1186, allocations: 0 / 382.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.1186, allocations: 4 kB / 382.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.1188, allocations: 47.92 kB / 382.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.1188, allocations: 4 kB / 382.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003984/0.1192, allocations: 68.02 kB / 382.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.717e-05/0.1192, allocations: 8 kB / 382.2 MB, free: 12.41 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.0001683/0.1194, allocations: 157.8 kB / 382.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.153e-05/0.1195, allocations: 31.78 kB / 382.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004825/0.1199, allocations: 195.7 kB / 382.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.1199, allocations: 4 kB / 382.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.12, allocations: 0 / 382.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.12, allocations: 0 / 382.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007953/0.1208, allocations: 0.514 MB / 383.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1208, allocations: 0 / 383.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001633/0.1209, allocations: 35.86 kB / 383.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.1209, allocations: 0 / 383.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.1209, allocations: 4 kB / 383.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1209, allocations: 4 kB / 383.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.1209, allocations: 0 / 383.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005502/0.1215, allocations: 380.5 kB / 383.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.882e-05/0.1216, allocations: 31.81 kB / 383.6 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.602e-05/0.1216, allocations: 4.094 kB / 383.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004393/0.122, allocations: 55.92 kB / 383.6 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001867/0.1222, allocations: 83.8 kB / 383.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.74e-05/0.1222, allocations: 4 kB / 383.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002523/0.1225, allocations: 221.2 kB / 383.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1225, allocations: 0 / 383.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003756/0.1229, allocations: 87.73 kB / 384 MB, free: 10.55 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.0001558/0.123, allocations: 111.2 kB / 384.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003648/0.1234, allocations: 171.7 kB / 384.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1234, allocations: 0 / 384.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002188/0.1236, allocations: 103.8 kB / 384.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004044/0.124, allocations: 48.98 kB / 384.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.1255, allocations: 0.7165 MB / 385.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001817/0.1257, allocations: 168.8 kB / 385.3 MB, free: 9.184 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001292/0.1258, allocations: 34.28 kB / 385.3 MB, free: 9.148 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.408e-05/0.1259, allocations: 28.5 kB / 385.4 MB, free: 9.121 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1259, allocations: 0 / 385.4 MB, free: 9.121 MB / 350.1 MB Notification: Performance of Templates: time 0.009215/0.1351, allocations: 4.321 MB / 389.7 MB, free: 4.848 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.8149592449190095]