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.001036/0.001036, allocations: 83.58 kB / 21.19 MB, free: 3.379 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.001006/0.001006, allocations: 161 kB / 24.56 MB, free: 12 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.02/1.02, allocations: 177.1 MB / 205 MB, free: 5.609 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.633e-06/1.633e-06, allocations: 0 / 272.9 MB, free: 1.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.765e-05/1.929e-05, allocations: 2.312 kB / 272.9 MB, free: 1.559 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.002973/0.002992, allocations: 3.011 MB / 276 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.004136, allocations: 0.7361 MB / 276.7 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.004284, allocations: 7.938 kB / 276.7 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000199/0.004483, allocations: 67.36 kB / 276.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002222/0.004705, allocations: 107 kB / 276.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002985/0.005003, allocations: 115.8 kB / 277 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003342/0.005338, allocations: 422.1 kB / 277.4 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002142/0.005552, allocations: 138.3 kB / 277.5 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002029/0.005755, allocations: 247.5 kB / 277.8 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002097/0.005964, allocations: 143.6 kB / 277.9 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.611e-05/0.00601, allocations: 43.94 kB / 278 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.006115, allocations: 55.98 kB / 278 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000127/0.006242, allocations: 119.6 kB / 278.1 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.006349, allocations: 139.7 kB / 278.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003325/0.006682, allocations: 310.9 kB / 278.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.006683, allocations: 0 / 278.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.006684, allocations: 0 / 278.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.519e-06/0.006689, allocations: 0 / 278.6 MB, free: 11.91 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.0009471/0.007636, allocations: 0.7882 MB / 279.4 MB, free: 11.08 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.00767, allocations: 8.031 kB / 279.4 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.609e-05/0.007766, allocations: 68.7 kB / 279.4 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003032/0.008069, allocations: 271.4 kB / 279.7 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.008089, allocations: 25.03 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.192e-05/0.008131, allocations: 32.38 kB / 279.8 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00038/0.008511, allocations: 327 kB / 280.1 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.008523, allocations: 192 / 280.1 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.589e-05/0.008549, allocations: 12.38 kB / 280.1 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.008563, allocations: 15.88 kB / 280.1 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001882/0.008751, allocations: 111.9 kB / 280.2 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.009868, allocations: 1.217 MB / 281.4 MB, free: 8.883 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002395/0.01011, allocations: 139 kB / 281.6 MB, free: 8.734 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001429/0.01025, allocations: 71.64 kB / 281.6 MB, free: 8.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.376e-05/0.01028, allocations: 4 kB / 281.6 MB, free: 8.656 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.593e-05/0.01031, allocations: 37.39 kB / 281.7 MB, free: 8.609 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.363e-06/0.01031, allocations: 0 / 281.7 MB, free: 8.609 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002785/0.01059, allocations: 149.6 kB / 281.8 MB, free: 8.457 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.767e-05/0.01062, allocations: 55.39 kB / 281.9 MB, free: 8.391 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002158/0.01083, allocations: 324.2 kB / 282.2 MB, free: 8.059 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.01085, allocations: 29.7 kB / 282.2 MB, free: 8.023 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.01097, allocations: 259.1 kB / 282.5 MB, free: 7.762 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.501e-05/0.011, allocations: 63.48 kB / 282.5 MB, free: 7.699 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.062e-05/0.01106, allocations: 47.36 kB / 282.6 MB, free: 7.645 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.01124, allocations: 0.5079 MB / 283.1 MB, free: 7.125 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.714e-05/0.0113, allocations: 23.98 kB / 283.1 MB, free: 7.102 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.0114, allocations: 115.8 kB / 283.2 MB, free: 6.953 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001482/0.01155, allocations: 155.2 kB / 283.4 MB, free: 6.766 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.01155, allocations: 0 / 283.4 MB, free: 6.766 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002048/0.01175, allocations: 185.2 kB / 283.6 MB, free: 6.578 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.01177, allocations: 4 kB / 283.6 MB, free: 6.574 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.01177, allocations: 7.938 kB / 283.6 MB, free: 6.566 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.01179, allocations: 7.938 kB / 283.6 MB, free: 6.559 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.01189, allocations: 44.23 kB / 283.6 MB, free: 6.516 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.0119, allocations: 11.92 kB / 283.6 MB, free: 6.504 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.01203, allocations: 43.86 kB / 283.7 MB, free: 6.461 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.986e-05/0.01205, allocations: 8 kB / 283.7 MB, free: 6.453 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 9.25e-05/0.01214, allocations: 176.5 kB / 283.9 MB, free: 6.27 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.982e-05/0.01221, allocations: 27.8 kB / 283.9 MB, free: 6.242 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002268/0.01244, allocations: 147.5 kB / 284 MB, free: 6.094 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.01244, allocations: 7.938 kB / 284 MB, free: 6.086 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.01245, allocations: 4 kB / 284 MB, free: 6.082 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.01245, allocations: 0 / 284 MB, free: 6.082 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004356/0.01289, allocations: 0.5049 MB / 284.5 MB, free: 5.527 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.01289, allocations: 0 / 284.5 MB, free: 5.527 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001021/0.01299, allocations: 31.92 kB / 284.6 MB, free: 5.496 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.01299, allocations: 0 / 284.6 MB, free: 5.496 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.01301, allocations: 11.94 kB / 284.6 MB, free: 5.484 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.601e-06/0.01301, allocations: 7.984 kB / 284.6 MB, free: 5.477 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.01302, allocations: 0 / 284.6 MB, free: 5.477 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002655/0.01328, allocations: 310.4 kB / 284.9 MB, free: 5.152 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.324e-05/0.01331, allocations: 39.78 kB / 284.9 MB, free: 5.113 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.766e-05/0.01334, allocations: 8 kB / 284.9 MB, free: 5.105 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/0.01348, allocations: 35.97 kB / 285 MB, free: 5.07 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001334/0.01362, allocations: 95.81 kB / 285.1 MB, free: 4.977 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.01363, allocations: 8 kB / 285.1 MB, free: 4.969 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001329/0.01376, allocations: 225.1 kB / 285.3 MB, free: 4.746 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01376, allocations: 0 / 285.3 MB, free: 4.746 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002306/0.01399, allocations: 83.78 kB / 285.4 MB, free: 4.664 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.0001355/0.01413, allocations: 115.2 kB / 285.5 MB, free: 4.543 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001933/0.01432, allocations: 107.5 kB / 285.6 MB, free: 4.434 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.01432, allocations: 0 / 285.6 MB, free: 4.434 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.554e-05/0.01439, allocations: 47.61 kB / 285.6 MB, free: 4.383 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002524/0.01464, allocations: 48.91 kB / 285.7 MB, free: 4.336 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009092/0.01555, allocations: 0.6141 MB / 286.3 MB, free: 3.695 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.998e-05/0.0156, allocations: 92.3 kB / 286.4 MB, free: 3.586 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.548e-05/0.01568, allocations: 26.3 kB / 286.4 MB, free: 3.559 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.314e-05/0.01574, allocations: 28.5 kB / 286.4 MB, free: 3.531 MB / 266.7 MB Notification: Performance of SimCode: time 6.51e-07/0.01574, allocations: 0 / 286.4 MB, free: 3.531 MB / 266.7 MB Notification: Performance of Templates: time 0.11/0.1258, allocations: 4.57 MB / 291 MB, free: 25.98 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.149988140910864]