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.0016/0.0016, allocations: 114.6 kB / 18.4 MB, free: 4.773 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.001702/0.001702, allocations: 190.7 kB / 21.34 MB, free: 1.844 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.424/1.424, allocations: 222.9 MB / 247 MB, free: 4.34 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.001628/0.001628, allocations: 51.91 kB / 358.6 MB, free: 8.465 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1024, allocations: 49.43 MB / 408.1 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004712/0.1072, allocations: 2.96 MB / 411 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001613/0.1088, allocations: 0.7128 MB / 411.8 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002922/0.1091, allocations: 11.94 kB / 411.8 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002802/0.1094, allocations: 55.44 kB / 411.8 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003455/0.1098, allocations: 107.1 kB / 411.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003719/0.1102, allocations: 107.8 kB / 412 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005458/0.1107, allocations: 422.2 kB / 412.4 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003403/0.1111, allocations: 213.8 kB / 412.6 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002011/0.1113, allocations: 159.4 kB / 412.8 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002899/0.1116, allocations: 187.2 kB / 413 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.915e-05/0.1117, allocations: 40 kB / 413 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001429/0.1118, allocations: 56 kB / 413.1 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001589/0.112, allocations: 107.6 kB / 413.2 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002252/0.1122, allocations: 199.1 kB / 413.4 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006144/0.1128, allocations: 0.498 MB / 413.9 MB, free: 1.156 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1128, allocations: 0 / 413.9 MB, free: 1.156 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1128, allocations: 3.938 kB / 413.9 MB, free: 1.152 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.1129, allocations: 4 kB / 413.9 MB, free: 1.148 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.001809/0.1147, allocations: 0.7928 MB / 414.7 MB, free: 316 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.1147, allocations: 19.89 kB / 414.7 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.993e-05/0.1148, allocations: 44.66 kB / 414.7 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005654/0.1154, allocations: 346.7 kB / 415.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.298e-05/0.1154, allocations: 25.03 kB / 415.1 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.718e-05/0.1155, allocations: 28.38 kB / 415.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006055/0.1161, allocations: 350.2 kB / 415.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.1161, allocations: 4 kB / 415.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.147e-05/0.1162, allocations: 15.94 kB / 415.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.1162, allocations: 8 kB / 415.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004583/0.1167, allocations: 238.5 kB / 415.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001972/0.1186, allocations: 1.304 MB / 417 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003785/0.119, allocations: 174.5 kB / 417.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002697/0.1193, allocations: 133 kB / 417.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.1194, allocations: 3.938 kB / 417.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.1194, allocations: 34.56 kB / 417.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.383e-06/0.1194, allocations: 0 / 417.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004979/0.1199, allocations: 229.4 kB / 417.6 MB, free: 13.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.234e-05/0.12, allocations: 55.41 kB / 417.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004009/0.1204, allocations: 322.9 kB / 418 MB, free: 12.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.807e-05/0.1204, allocations: 25.7 kB / 418 MB, free: 12.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001648/0.1206, allocations: 220.3 kB / 418.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.457e-05/0.1206, allocations: 55.48 kB / 418.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.839e-05/0.1207, allocations: 45.7 kB / 418.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.1209, allocations: 334.8 kB / 418.6 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001484/0.1211, allocations: 75.95 kB / 418.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/0.1213, allocations: 133 kB / 418.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002559/0.1215, allocations: 165.8 kB / 419 MB, free: 11.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1215, allocations: 0 / 419 MB, free: 11.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004254/0.122, allocations: 249.1 kB / 419.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.122, allocations: 8 kB / 419.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.122, allocations: 256 / 419.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.122, allocations: 8 kB / 419.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001829/0.1222, allocations: 43.92 kB / 419.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.1222, allocations: 7.938 kB / 419.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000411/0.1226, allocations: 67.77 kB / 419.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.944e-05/0.1227, allocations: 12 kB / 419.4 MB, free: 11.33 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.0001718/0.1229, allocations: 153.8 kB / 419.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.305e-05/0.1229, allocations: 27.8 kB / 419.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004284/0.1234, allocations: 203.7 kB / 419.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.1234, allocations: 4 kB / 419.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1234, allocations: 0 / 419.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.1234, allocations: 3.984 kB / 419.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008259/0.1242, allocations: 0.6302 MB / 420.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1243, allocations: 0 / 420.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001594/0.1244, allocations: 32.02 kB / 420.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1244, allocations: 0 / 420.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.1245, allocations: 11.94 kB / 420.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.004e-05/0.1245, allocations: 3.938 kB / 420.5 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1245, allocations: 0 / 420.5 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005306/0.125, allocations: 382.3 kB / 420.8 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.088e-05/0.1251, allocations: 108.9 kB / 420.9 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.905e-05/0.1252, allocations: 8.062 kB / 420.9 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004329/0.1256, allocations: 55.92 kB / 421 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001775/0.1258, allocations: 71.88 kB / 421.1 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.927e-05/0.1258, allocations: 8 kB / 421.1 MB, free: 9.535 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002702/0.1261, allocations: 237.9 kB / 421.3 MB, free: 9.305 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1261, allocations: 7.938 kB / 421.3 MB, free: 9.297 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003631/0.1265, allocations: 83.78 kB / 421.4 MB, free: 9.215 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.0001737/0.1267, allocations: 111.1 kB / 421.5 MB, free: 9.094 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003802/0.127, allocations: 183.8 kB / 421.7 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1271, allocations: 0 / 421.7 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001879/0.1273, allocations: 111 kB / 421.8 MB, free: 8.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004141/0.1277, allocations: 44.94 kB / 421.8 MB, free: 8.762 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001505/0.1292, allocations: 0.7638 MB / 422.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004304/0.1296, allocations: 0.779 MB / 423.4 MB, free: 7.152 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.1298, allocations: 31.42 kB / 423.4 MB, free: 7.121 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1298, allocations: 7.938 kB / 423.4 MB, free: 7.113 MB / 350.1 MB Notification: Performance of Templates: time 0.007088/0.1369, allocations: 4.343 MB / 427.8 MB, free: 2.793 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 -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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 8.323150356998667]