Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009745/0.0009745, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001194/0.001194, allocations: 160.2 kB / 24.91 MB, free: 8.262 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.031/1.031, allocations: 177 MB / 205.2 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 273.4 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.814e-05/1.964e-05, allocations: 2.312 kB / 273.4 MB, free: 1.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004031/0.00405, allocations: 3.007 MB / 276.4 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001665/0.005715, allocations: 0.7514 MB / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002116/0.005927, allocations: 11.94 kB / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002183/0.006145, allocations: 63.42 kB / 277.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003211/0.006466, allocations: 119 kB / 277.4 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003449/0.006811, allocations: 99.88 kB / 277.5 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004453/0.007256, allocations: 422.1 kB / 277.9 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000243/0.007499, allocations: 150.2 kB / 278 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002842/0.007784, allocations: 243.4 kB / 278.2 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002591/0.008043, allocations: 155.6 kB / 278.4 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.011e-05/0.008103, allocations: 40 kB / 278.4 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001401/0.008243, allocations: 59.97 kB / 278.5 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001394/0.008382, allocations: 107.6 kB / 278.6 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000134/0.008516, allocations: 143.7 kB / 278.7 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004214/0.008938, allocations: 310.8 kB / 279 MB, free: 11.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.008941, allocations: 4 kB / 279.1 MB, free: 11.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.008942, allocations: 0 / 279.1 MB, free: 11.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.092e-06/0.008948, allocations: 0 / 279.1 MB, free: 11.54 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.0009657/0.009914, allocations: 0.6635 MB / 279.7 MB, free: 10.85 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.171e-05/0.009946, allocations: 11.98 kB / 279.7 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.743e-05/0.01003, allocations: 52.89 kB / 279.8 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002908/0.01032, allocations: 220.6 kB / 280 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.01035, allocations: 21.03 kB / 280 MB, free: 10.53 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.536e-05/0.01039, allocations: 36.38 kB / 280.1 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003381/0.01073, allocations: 301.4 kB / 280.3 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.188e-06/0.01074, allocations: 192 / 280.3 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.534e-05/0.01076, allocations: 20.36 kB / 280.4 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.01077, allocations: 15.88 kB / 280.4 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001513/0.01093, allocations: 71.39 kB / 280.4 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001111/0.01204, allocations: 0.899 MB / 281.3 MB, free: 9.109 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000197/0.01223, allocations: 153 kB / 281.5 MB, free: 8.953 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.01235, allocations: 61.09 kB / 281.6 MB, free: 8.891 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.01237, allocations: 7.938 kB / 281.6 MB, free: 8.883 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.983e-05/0.01239, allocations: 38.5 kB / 281.6 MB, free: 8.836 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 2.104e-06/0.01239, allocations: 4 kB / 281.6 MB, free: 8.832 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0001898/0.01258, allocations: 97.64 kB / 281.7 MB, free: 8.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.79e-05/0.01261, allocations: 59.34 kB / 281.8 MB, free: 8.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.01281, allocations: 248.9 kB / 282 MB, free: 8.406 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.01284, allocations: 33.64 kB / 282 MB, free: 8.367 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.964e-05/0.01294, allocations: 196.8 kB / 282.2 MB, free: 8.168 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.638e-05/0.01298, allocations: 55.52 kB / 282.3 MB, free: 8.113 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.485e-05/0.01306, allocations: 49.64 kB / 282.3 MB, free: 8.059 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.01316, allocations: 334.8 kB / 282.7 MB, free: 7.723 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.999e-05/0.01321, allocations: 22.81 kB / 282.7 MB, free: 7.699 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.537e-05/0.0133, allocations: 83.64 kB / 282.8 MB, free: 7.59 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001473/0.01345, allocations: 122.7 kB / 282.9 MB, free: 7.445 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.01345, allocations: 0 / 282.9 MB, free: 7.445 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002036/0.01366, allocations: 140.3 kB / 283 MB, free: 7.301 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.01367, allocations: 4 kB / 283 MB, free: 7.297 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.01368, allocations: 4 kB / 283 MB, free: 7.293 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.0137, allocations: 4 kB / 283 MB, free: 7.289 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002033/0.0139, allocations: 55.84 kB / 283.1 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.01391, allocations: 4 kB / 283.1 MB, free: 7.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001802/0.01409, allocations: 48.09 kB / 283.1 MB, free: 7.184 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.285e-05/0.01411, allocations: 12 kB / 283.1 MB, free: 7.172 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.0001098/0.01422, allocations: 128.5 kB / 283.3 MB, free: 7.035 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.619e-05/0.01427, allocations: 19.97 kB / 283.3 MB, free: 7.016 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002104/0.01448, allocations: 123.7 kB / 283.4 MB, free: 6.891 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.01448, allocations: 0 / 283.4 MB, free: 6.891 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.01448, allocations: 3.938 kB / 283.4 MB, free: 6.887 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.01449, allocations: 0 / 283.4 MB, free: 6.887 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004575/0.01494, allocations: 394.3 kB / 283.8 MB, free: 6.473 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.01495, allocations: 0 / 283.8 MB, free: 6.473 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001468/0.01509, allocations: 36.02 kB / 283.8 MB, free: 6.438 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.0151, allocations: 0 / 283.8 MB, free: 6.438 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.01511, allocations: 7.938 kB / 283.8 MB, free: 6.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.01512, allocations: 11.98 kB / 283.9 MB, free: 6.418 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.01512, allocations: 0 / 283.9 MB, free: 6.418 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002654/0.01538, allocations: 267.3 kB / 284.1 MB, free: 6.137 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.147e-05/0.01543, allocations: 31.73 kB / 284.1 MB, free: 6.105 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.096e-05/0.01546, allocations: 7.938 kB / 284.2 MB, free: 6.098 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/0.01565, allocations: 43.98 kB / 284.2 MB, free: 6.055 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.755e-05/0.01575, allocations: 39.94 kB / 284.2 MB, free: 6.016 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.443e-05/0.01576, allocations: 4 kB / 284.2 MB, free: 6.012 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001098/0.01587, allocations: 90.77 kB / 284.3 MB, free: 5.918 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01587, allocations: 4 kB / 284.3 MB, free: 5.914 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003202/0.01619, allocations: 83.78 kB / 284.4 MB, free: 5.832 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.0001257/0.01632, allocations: 91.8 kB / 284.5 MB, free: 5.734 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001749/0.01649, allocations: 96.67 kB / 284.6 MB, free: 5.637 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/0.0165, allocations: 0 / 284.6 MB, free: 5.637 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.784e-05/0.01658, allocations: 46.7 kB / 284.6 MB, free: 5.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000291/0.01687, allocations: 48.34 kB / 284.7 MB, free: 5.543 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.01792, allocations: 0.6005 MB / 285.3 MB, free: 4.914 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.046e-05/0.01799, allocations: 96.3 kB / 285.4 MB, free: 4.801 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001133/0.01811, allocations: 22.3 kB / 285.4 MB, free: 4.781 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001765/0.01828, allocations: 103.3 kB / 285.5 MB, free: 4.68 MB / 266.7 MB Notification: Performance of SimCode: time 1.092e-06/0.01828, allocations: 0 / 285.5 MB, free: 4.68 MB / 266.7 MB Notification: Performance of Templates: time 0.007455/0.02574, allocations: 3.996 MB / 289.5 MB, free: 0.7461 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.118266258854419]