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.00106/0.00106, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001582/0.002643, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.001056/0.001056, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001371/0.002427, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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 0.9715/0.9715, allocations: 177.4 MB / 189.9 MB, free: 4.844 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1003/1.072, allocations: 53.86 MB / 243.7 MB, free: 14.92 MB / 250.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.503e-06/1.503e-06, allocations: 0 / 245 MB, free: 13.68 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.013e-05/2.163e-05, allocations: 2.312 kB / 245 MB, free: 13.68 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003674/0.003696, allocations: 3.035 MB / 248 MB, free: 10.62 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001191/0.004887, allocations: 0.7669 MB / 248.8 MB, free: 9.852 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001561/0.005043, allocations: 7.938 kB / 248.8 MB, free: 9.844 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001431/0.005186, allocations: 63.38 kB / 248.9 MB, free: 9.781 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002361/0.005423, allocations: 111 kB / 249 MB, free: 9.672 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002315/0.005654, allocations: 111.8 kB / 249.1 MB, free: 9.562 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003754/0.00603, allocations: 430.1 kB / 249.5 MB, free: 9.141 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002148/0.006244, allocations: 138.3 kB / 249.6 MB, free: 9.004 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002745/0.006519, allocations: 276.1 kB / 249.9 MB, free: 8.734 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002157/0.006735, allocations: 151.6 kB / 250.1 MB, free: 8.586 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.975e-05/0.006784, allocations: 40 kB / 250.1 MB, free: 8.547 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001297/0.006914, allocations: 59.88 kB / 250.2 MB, free: 8.488 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.007025, allocations: 87.7 kB / 250.2 MB, free: 8.402 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000115/0.00714, allocations: 115.8 kB / 250.4 MB, free: 8.289 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003491/0.007489, allocations: 287 kB / 250.6 MB, free: 8.008 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.264e-05/0.007502, allocations: 0 / 250.6 MB, free: 8.008 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.72e-07/0.007502, allocations: 0 / 250.6 MB, free: 8.008 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.714e-05/0.00752, allocations: 0 / 250.6 MB, free: 8.008 MB / 250.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.001056/0.008576, allocations: 0.7373 MB / 251.4 MB, free: 7.246 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.091e-05/0.008607, allocations: 11.97 kB / 251.4 MB, free: 7.234 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.042e-05/0.008687, allocations: 52.89 kB / 251.4 MB, free: 7.184 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002992/0.008986, allocations: 224.7 kB / 251.7 MB, free: 6.941 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.032e-05/0.009006, allocations: 21.03 kB / 251.7 MB, free: 6.922 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.808e-05/0.009055, allocations: 36.33 kB / 251.7 MB, free: 6.887 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003297/0.009384, allocations: 305.3 kB / 252 MB, free: 6.555 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.009395, allocations: 192 / 252 MB, free: 6.555 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.245e-05/0.009417, allocations: 12.38 kB / 252 MB, free: 6.543 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.00943, allocations: 11.94 kB / 252 MB, free: 6.531 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001397/0.00957, allocations: 79.31 kB / 252.1 MB, free: 6.453 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001042/0.01061, allocations: 0.899 MB / 253 MB, free: 5.5 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002079/0.01082, allocations: 142.4 kB / 253.1 MB, free: 5.352 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.01093, allocations: 64.83 kB / 253.2 MB, free: 5.285 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.854e-05/0.01096, allocations: 4 kB / 253.2 MB, free: 5.281 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.01098, allocations: 42.48 kB / 253.3 MB, free: 5.23 MB / 250.7 MB Notification: Performance of pre-optimization done (n=16): time 1.253e-06/0.01098, allocations: 3.938 kB / 253.3 MB, free: 5.227 MB / 250.7 MB Notification: Performance of matching and sorting (n=16): time 0.0001976/0.01118, allocations: 101.2 kB / 253.4 MB, free: 5.125 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.728e-05/0.01121, allocations: 63.33 kB / 253.4 MB, free: 5.051 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.01139, allocations: 241 kB / 253.7 MB, free: 4.805 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.01141, allocations: 33.7 kB / 253.7 MB, free: 4.766 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.557e-05/0.01149, allocations: 196.7 kB / 253.9 MB, free: 4.57 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.536e-05/0.01153, allocations: 55.52 kB / 253.9 MB, free: 4.516 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.55e-05/0.01159, allocations: 53.62 kB / 254 MB, free: 4.457 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.652e-05/0.01168, allocations: 338.8 kB / 254.3 MB, free: 4.117 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.257e-05/0.01172, allocations: 22.81 kB / 254.3 MB, free: 4.094 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.98e-05/0.0118, allocations: 84.3 kB / 254.4 MB, free: 3.984 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001181/0.01192, allocations: 119.5 kB / 254.5 MB, free: 3.84 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.01192, allocations: 0 / 254.5 MB, free: 3.84 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001782/0.0121, allocations: 135.5 kB / 254.7 MB, free: 3.703 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/0.01211, allocations: 8 kB / 254.7 MB, free: 3.695 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.01212, allocations: 4 kB / 254.7 MB, free: 3.691 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.906e-06/0.01213, allocations: 0 / 254.7 MB, free: 3.691 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000203/0.01233, allocations: 72.08 kB / 254.8 MB, free: 3.621 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.01234, allocations: 4 kB / 254.8 MB, free: 3.617 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.01249, allocations: 47.84 kB / 254.8 MB, free: 3.57 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.01251, allocations: 4 kB / 254.8 MB, free: 3.566 MB / 250.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 8.689e-05/0.0126, allocations: 124.6 kB / 254.9 MB, free: 3.434 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.815e-05/0.01264, allocations: 15.98 kB / 254.9 MB, free: 3.418 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001925/0.01283, allocations: 123.7 kB / 255.1 MB, free: 3.293 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.01283, allocations: 7.938 kB / 255.1 MB, free: 3.285 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.01283, allocations: 3.938 kB / 255.1 MB, free: 3.281 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.01284, allocations: 4 kB / 255.1 MB, free: 3.277 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004067/0.01324, allocations: 383.5 kB / 255.5 MB, free: 2.871 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.01325, allocations: 3.938 kB / 255.5 MB, free: 2.867 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001291/0.01338, allocations: 31.98 kB / 255.5 MB, free: 2.836 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.676e-05/0.01341, allocations: 31.72 kB / 255.5 MB, free: 2.805 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.01342, allocations: 4 kB / 255.5 MB, free: 2.801 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.01343, allocations: 0 / 255.5 MB, free: 2.801 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.01343, allocations: 0 / 255.5 MB, free: 2.801 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.01343, allocations: 4 kB / 255.5 MB, free: 2.797 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002352/0.01367, allocations: 278.8 kB / 255.8 MB, free: 2.508 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.978e-05/0.0137, allocations: 7.875 kB / 255.8 MB, free: 2.5 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.01387, allocations: 43.95 kB / 255.9 MB, free: 2.457 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.353e-05/0.01395, allocations: 35.94 kB / 255.9 MB, free: 2.422 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.313e-05/0.01396, allocations: 8 kB / 255.9 MB, free: 2.414 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.084e-05/0.01405, allocations: 94.75 kB / 256 MB, free: 2.32 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.01405, allocations: 0 / 256 MB, free: 2.32 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002776/0.01433, allocations: 91.77 kB / 256.1 MB, free: 2.23 MB / 250.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.0001028/0.01444, allocations: 84.42 kB / 256.2 MB, free: 2.137 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001598/0.01459, allocations: 93.06 kB / 256.3 MB, free: 2.043 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/0.0146, allocations: 4 kB / 256.3 MB, free: 2.039 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.171e-05/0.01468, allocations: 43.59 kB / 256.3 MB, free: 1.992 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.01493, allocations: 64.25 kB / 256.4 MB, free: 1.934 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003134/0.01807, allocations: 0.5844 MB / 256.9 MB, free: 1.316 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.417e-05/0.01813, allocations: 96.3 kB / 257 MB, free: 1.203 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001066/0.01824, allocations: 26.3 kB / 257.1 MB, free: 1.18 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/0.0184, allocations: 99.34 kB / 257.2 MB, free: 1.082 MB / 250.7 MB Notification: Performance of SimCode: time 6.51e-07/0.0184, allocations: 4 kB / 257.2 MB, free: 1.078 MB / 250.7 MB Notification: Performance of Templates: time 0.007135/0.02553, allocations: 4.144 MB / 261.3 MB, free: 12.98 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 -emit_protected -ignoreHideResult -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: 2.717890542000532]