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.001408/0.001408, allocations: 92.31 kB / 20.96 MB, free: 3.477 MB / 18.57 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.001574/0.001574, allocations: 165.7 kB / 24.27 MB, free: 172 kB / 18.57 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.549/1.549, allocations: 177.1 MB / 204.6 MB, free: 5.582 MB / 186.7 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 2.355e-06/2.355e-06, allocations: 0 / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.776e-05/3.012e-05, allocations: 2.312 kB / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.005188/0.005219, allocations: 2.807 MB / 275.1 MB, free: 15 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001777/0.006995, allocations: 0.7205 MB / 275.8 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003477/0.007343, allocations: 11.94 kB / 275.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003061/0.007649, allocations: 59.38 kB / 275.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004196/0.008069, allocations: 119 kB / 276 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004628/0.008532, allocations: 103.8 kB / 276.1 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005985/0.00913, allocations: 426.1 kB / 276.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003024/0.009432, allocations: 138.4 kB / 276.7 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003413/0.009774, allocations: 243.5 kB / 276.9 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002858/0.01006, allocations: 135.6 kB / 277 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.002e-05/0.01013, allocations: 40 kB / 277.1 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001389/0.01027, allocations: 67.86 kB / 277.1 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001805/0.01045, allocations: 107.6 kB / 277.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001872/0.01064, allocations: 139.7 kB / 277.4 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006973/0.01133, allocations: 0.4985 MB / 277.9 MB, free: 12.22 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.01134, allocations: 0 / 277.9 MB, free: 12.22 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.01134, allocations: 0 / 277.9 MB, free: 12.22 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.01135, allocations: 0 / 277.9 MB, free: 12.22 MB / 266.7 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.001788/0.01313, allocations: 0.7194 MB / 278.6 MB, free: 11.47 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.01317, allocations: 12.03 kB / 278.6 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/0.01333, allocations: 64.7 kB / 278.7 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000567/0.01389, allocations: 300.5 kB / 279 MB, free: 11.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.991e-05/0.01392, allocations: 21.03 kB / 279 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.241e-05/0.014, allocations: 36.38 kB / 279 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006869/0.01468, allocations: 389.9 kB / 279.4 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.0147, allocations: 192 / 279.4 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.76e-05/0.01473, allocations: 16.38 kB / 279.4 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.788e-05/0.01475, allocations: 11.94 kB / 279.4 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00047/0.01522, allocations: 234.5 kB / 279.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001981/0.0172, allocations: 1.13 MB / 280.8 MB, free: 9.164 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006204/0.01782, allocations: 158.5 kB / 280.9 MB, free: 9 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003031/0.01813, allocations: 112.8 kB / 281.1 MB, free: 8.887 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.022e-05/0.01817, allocations: 4 kB / 281.1 MB, free: 8.883 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.832e-05/0.0182, allocations: 38.56 kB / 281.1 MB, free: 8.836 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.353e-06/0.01821, allocations: 4 kB / 281.1 MB, free: 8.832 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0005807/0.01879, allocations: 237.6 kB / 281.3 MB, free: 8.594 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.01884, allocations: 51.41 kB / 281.4 MB, free: 8.531 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000392/0.01924, allocations: 301.8 kB / 281.7 MB, free: 8.227 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.19e-05/0.01927, allocations: 25.7 kB / 281.7 MB, free: 8.195 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001992/0.01947, allocations: 220.3 kB / 281.9 MB, free: 7.977 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.564e-05/0.01953, allocations: 59.48 kB / 282 MB, free: 7.918 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.367e-05/0.01963, allocations: 41.72 kB / 282 MB, free: 7.871 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.01982, allocations: 334.8 kB / 282.3 MB, free: 7.535 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.01997, allocations: 71.95 kB / 282.4 MB, free: 7.465 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002139/0.02019, allocations: 136.3 kB / 282.6 MB, free: 7.305 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002927/0.02048, allocations: 165 kB / 282.7 MB, free: 7.117 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.02048, allocations: 0 / 282.7 MB, free: 7.117 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004685/0.02095, allocations: 253.2 kB / 283 MB, free: 6.863 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.02097, allocations: 8 kB / 283 MB, free: 6.855 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.02098, allocations: 0 / 283 MB, free: 6.855 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.021, allocations: 7.938 kB / 283 MB, free: 6.848 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001998/0.0212, allocations: 43.92 kB / 283 MB, free: 6.805 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.108e-06/0.02121, allocations: 4 kB / 283 MB, free: 6.801 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004109/0.02162, allocations: 71.95 kB / 283.1 MB, free: 6.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.015e-05/0.02166, allocations: 16 kB / 283.1 MB, free: 6.715 MB / 266.7 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.0001848/0.02185, allocations: 153.7 kB / 283.3 MB, free: 6.555 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.452e-05/0.02192, allocations: 31.86 kB / 283.3 MB, free: 6.523 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004564/0.02238, allocations: 199.5 kB / 283.5 MB, free: 6.324 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.854e-06/0.02238, allocations: 7.938 kB / 283.5 MB, free: 6.316 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.02239, allocations: 0 / 283.5 MB, free: 6.316 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.02239, allocations: 0 / 283.5 MB, free: 6.316 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008117/0.0232, allocations: 0.5107 MB / 284 MB, free: 5.762 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.02321, allocations: 0 / 284 MB, free: 5.762 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001814/0.02339, allocations: 31.92 kB / 284 MB, free: 5.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.02339, allocations: 0 / 284 MB, free: 5.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.02341, allocations: 8 kB / 284 MB, free: 5.723 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.02341, allocations: 0 / 284 MB, free: 5.723 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.02342, allocations: 0 / 284 MB, free: 5.723 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005954/0.02401, allocations: 377.2 kB / 284.4 MB, free: 5.336 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.547e-05/0.02408, allocations: 43.69 kB / 284.5 MB, free: 5.293 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.304e-05/0.02412, allocations: 4 kB / 284.5 MB, free: 5.289 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000435/0.02455, allocations: 60.02 kB / 284.5 MB, free: 5.23 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001973/0.02475, allocations: 75.86 kB / 284.6 MB, free: 5.156 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.02477, allocations: 4 kB / 284.6 MB, free: 5.152 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002695/0.02504, allocations: 221.2 kB / 284.8 MB, free: 4.938 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02504, allocations: 0 / 284.8 MB, free: 4.938 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004017/0.02544, allocations: 83.78 kB / 284.9 MB, free: 4.855 MB / 266.7 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.0002005/0.02564, allocations: 119.2 kB / 285 MB, free: 4.73 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003837/0.02603, allocations: 174.4 kB / 285.2 MB, free: 4.562 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.02603, allocations: 0 / 285.2 MB, free: 4.562 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002107/0.02624, allocations: 103.9 kB / 285.3 MB, free: 4.461 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004239/0.02666, allocations: 40.98 kB / 285.3 MB, free: 4.418 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001481/0.02814, allocations: 0.6683 MB / 286 MB, free: 3.727 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002377/0.02838, allocations: 172.8 kB / 286.2 MB, free: 3.535 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001323/0.02851, allocations: 30.28 kB / 286.2 MB, free: 3.508 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.982e-05/0.02861, allocations: 28.5 kB / 286.2 MB, free: 3.48 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.02861, allocations: 3.938 kB / 286.2 MB, free: 3.477 MB / 266.7 MB Notification: Performance of Templates: time 0.1252/0.1539, allocations: 4.293 MB / 290.5 MB, free: 28.21 MB / 266.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins/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: 5.091018064995296]