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.001074/0.001074, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.004309/0.004309, allocations: 168.8 kB / 24.82 MB, free: 9.27 MB / 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.01/1.01, allocations: 177.1 MB / 205.3 MB, free: 5.523 MB / 186.7 MB " [Timeout remaining time 179] 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 1.443e-06/1.443e-06, allocations: 0 / 273.4 MB, free: 1.344 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.866e-05/3.011e-05, allocations: 4.703 kB / 273.4 MB, free: 1.34 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004411/0.004442, allocations: 2.969 MB / 276.3 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001451/0.005892, allocations: 0.7244 MB / 277.1 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002015/0.006094, allocations: 11.94 kB / 277.1 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002006/0.006294, allocations: 59.38 kB / 277.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002973/0.006592, allocations: 123 kB / 277.3 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003726/0.006964, allocations: 103.9 kB / 277.4 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005011/0.007465, allocations: 430.1 kB / 277.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002575/0.007723, allocations: 138.3 kB / 277.9 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002776/0.008, allocations: 247.5 kB / 278.2 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002479/0.008248, allocations: 143.6 kB / 278.3 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.655e-05/0.008305, allocations: 47.98 kB / 278.3 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001341/0.008439, allocations: 59.92 kB / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001363/0.008575, allocations: 103.6 kB / 278.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.008707, allocations: 147.6 kB / 278.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004576/0.009164, allocations: 306.9 kB / 278.9 MB, free: 11.74 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.009167, allocations: 0 / 278.9 MB, free: 11.74 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.009169, allocations: 0 / 278.9 MB, free: 11.74 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.009176, allocations: 3.984 kB / 278.9 MB, free: 11.73 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.001134/0.01031, allocations: 0.7959 MB / 279.7 MB, free: 10.9 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.01036, allocations: 12.03 kB / 279.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.01047, allocations: 60.7 kB / 279.8 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003468/0.01081, allocations: 271.4 kB / 280.1 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.439e-05/0.01084, allocations: 21.03 kB / 280.1 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.379e-05/0.01089, allocations: 36.38 kB / 280.1 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003886/0.01128, allocations: 303 kB / 280.4 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.0113, allocations: 8.062 kB / 280.4 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.968e-05/0.01133, allocations: 16.38 kB / 280.5 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.01134, allocations: 11.94 kB / 280.5 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.01152, allocations: 84.52 kB / 280.5 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001433/0.01295, allocations: 1.166 MB / 281.7 MB, free: 8.809 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002473/0.0132, allocations: 119 kB / 281.8 MB, free: 8.68 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001369/0.01334, allocations: 63.64 kB / 281.9 MB, free: 8.613 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.335e-05/0.01337, allocations: 8 kB / 281.9 MB, free: 8.605 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.0134, allocations: 37.39 kB / 281.9 MB, free: 8.559 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 2.044e-06/0.0134, allocations: 0 / 281.9 MB, free: 8.559 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002879/0.01369, allocations: 144.8 kB / 282.1 MB, free: 8.414 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/0.01372, allocations: 55.34 kB / 282.1 MB, free: 8.348 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002599/0.01398, allocations: 312.1 kB / 282.4 MB, free: 8.027 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.01401, allocations: 33.7 kB / 282.5 MB, free: 7.988 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001525/0.01416, allocations: 263 kB / 282.7 MB, free: 7.723 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.148e-05/0.01421, allocations: 55.47 kB / 282.8 MB, free: 7.668 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.186e-05/0.01429, allocations: 55.33 kB / 282.8 MB, free: 7.605 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.01447, allocations: 0.504 MB / 283.3 MB, free: 7.09 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.482e-05/0.01452, allocations: 23.97 kB / 283.4 MB, free: 7.066 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/0.01463, allocations: 105.8 kB / 283.5 MB, free: 6.926 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001694/0.0148, allocations: 143.4 kB / 283.6 MB, free: 6.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.0148, allocations: 4 kB / 283.6 MB, free: 6.746 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002722/0.01508, allocations: 181.2 kB / 283.8 MB, free: 6.562 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.01509, allocations: 6.656 kB / 283.8 MB, free: 6.559 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.0151, allocations: 4 kB / 283.8 MB, free: 6.555 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.01512, allocations: 4 kB / 283.8 MB, free: 6.551 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000154/0.01528, allocations: 43.92 kB / 283.8 MB, free: 6.508 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.01528, allocations: 7.938 kB / 283.9 MB, free: 6.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000189/0.01547, allocations: 47.84 kB / 283.9 MB, free: 6.453 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.609e-05/0.0155, allocations: 12.16 kB / 283.9 MB, free: 6.441 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 (energy.local_reset,pulseSeries.on2,pulseSeries.on1) * 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.0001433/0.01564, allocations: 172.5 kB / 284.1 MB, free: 6.262 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.128e-05/0.0157, allocations: 31.86 kB / 284.1 MB, free: 6.23 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002682/0.01597, allocations: 131.7 kB / 284.2 MB, free: 6.094 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.01597, allocations: 0 / 284.2 MB, free: 6.094 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.656e-06/0.01598, allocations: 3.938 kB / 284.2 MB, free: 6.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.01598, allocations: 7.984 kB / 284.3 MB, free: 6.082 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/0.01764, allocations: 457.6 kB / 284.7 MB, free: 5.594 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.01764, allocations: 0 / 284.7 MB, free: 5.594 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.01776, allocations: 35.92 kB / 284.7 MB, free: 5.559 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.01776, allocations: 4.031 kB / 284.7 MB, free: 5.555 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.01777, allocations: 11.92 kB / 284.7 MB, free: 5.543 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.01778, allocations: 0 / 284.7 MB, free: 5.543 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.01778, allocations: 0 / 284.7 MB, free: 5.543 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003294/0.01811, allocations: 299.7 kB / 285 MB, free: 5.23 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.056e-05/0.01817, allocations: 35.78 kB / 285.1 MB, free: 5.195 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.01819, allocations: 7.938 kB / 285.1 MB, free: 5.188 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001492/0.01834, allocations: 43.98 kB / 285.1 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.465e-05/0.01842, allocations: 35.94 kB / 285.2 MB, free: 5.109 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.449e-05/0.01843, allocations: 8 kB / 285.2 MB, free: 5.102 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001051/0.01854, allocations: 217 kB / 285.4 MB, free: 4.887 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01854, allocations: 0 / 285.4 MB, free: 4.887 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002607/0.0188, allocations: 83.78 kB / 285.5 MB, free: 4.805 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.0001453/0.01894, allocations: 111.2 kB / 285.6 MB, free: 4.688 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001632/0.01911, allocations: 93.73 kB / 285.7 MB, free: 4.594 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.01911, allocations: 4.188 kB / 285.7 MB, free: 4.59 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.694e-05/0.01916, allocations: 43.61 kB / 285.7 MB, free: 4.543 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002688/0.01943, allocations: 47.73 kB / 285.8 MB, free: 4.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000899/0.02033, allocations: 0.6145 MB / 286.4 MB, free: 3.855 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.312e-05/0.02039, allocations: 88.31 kB / 286.5 MB, free: 3.75 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.016e-05/0.02048, allocations: 30.28 kB / 286.5 MB, free: 3.719 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001374/0.02061, allocations: 122.2 kB / 286.6 MB, free: 3.598 MB / 266.7 MB Notification: Performance of SimCode: time 8.91e-07/0.02061, allocations: 0 / 286.6 MB, free: 3.598 MB / 266.7 MB Notification: Performance of Templates: time 0.1228/0.1434, allocations: 4.631 MB / 291.2 MB, free: 25.84 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0930923013947904]