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.001728/0.001728, allocations: 112.8 kB / 19.17 MB, free: 3.871 MB / 14.72 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.002171/0.002171, allocations: 210.5 kB / 22.13 MB, free: 0.918 MB / 14.72 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.452/1.452, allocations: 230.2 MB / 255.2 MB, free: 15.39 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002446/0.002446, allocations: 75.86 kB / 374.5 MB, free: 9.926 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1278, allocations: 53.32 MB / 427.8 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.006472/0.1343, allocations: 3.004 MB / 430.8 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002038/0.1363, allocations: 0.7478 MB / 431.6 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002281/0.1365, allocations: 8 kB / 431.6 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002832/0.1368, allocations: 59.38 kB / 431.6 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003908/0.1372, allocations: 111.1 kB / 431.7 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004515/0.1376, allocations: 107.8 kB / 431.9 MB, free: 468 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006638/0.1383, allocations: 414.3 kB / 432.3 MB, free: 52 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000402/0.1387, allocations: 145.8 kB / 432.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002696/0.139, allocations: 163.4 kB / 432.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003879/0.1394, allocations: 179.2 kB / 432.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.082e-05/0.1395, allocations: 40 kB / 432.8 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001743/0.1396, allocations: 55.94 kB / 432.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002234/0.1399, allocations: 107.6 kB / 432.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002984/0.1402, allocations: 211 kB / 433.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008551/0.141, allocations: 498 kB / 433.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.141, allocations: 8 kB / 433.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.141, allocations: 0 / 433.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.568e-05/0.141, allocations: 0 / 433.6 MB, free: 14.67 MB / 366.1 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.002532/0.1436, allocations: 0.8026 MB / 434.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.1436, allocations: 8.031 kB / 434.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.1437, allocations: 40.7 kB / 434.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007697/0.1445, allocations: 346.7 kB / 434.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.542e-05/0.1445, allocations: 21.03 kB / 434.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.866e-05/0.1446, allocations: 32.38 kB / 434.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009521/0.1456, allocations: 354.2 kB / 435.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/0.1456, allocations: 0 / 435.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.276e-05/0.1457, allocations: 12 kB / 435.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.112e-05/0.1457, allocations: 8 kB / 435.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007331/0.1464, allocations: 238.4 kB / 435.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002858/0.1493, allocations: 1.3 MB / 436.8 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006223/0.1499, allocations: 166.6 kB / 436.9 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004152/0.1503, allocations: 121 kB / 437.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.875e-05/0.1504, allocations: 3.938 kB / 437.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/0.1504, allocations: 34.56 kB / 437.1 MB, free: 11.01 MB / 366.1 MB Notification: Performance of pre-optimization done (n=16): time 2.044e-06/0.1504, allocations: 0 / 437.1 MB, free: 11.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007854/0.1512, allocations: 231 kB / 437.3 MB, free: 10.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.144e-05/0.1512, allocations: 55.41 kB / 437.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005969/0.1518, allocations: 323 kB / 437.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.325e-05/0.1519, allocations: 29.7 kB / 437.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002124/0.1521, allocations: 212.4 kB / 437.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.65e-05/0.1522, allocations: 59.52 kB / 438 MB, free: 10.08 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/0.1523, allocations: 53.59 kB / 438 MB, free: 10.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.1525, allocations: 330.8 kB / 438.4 MB, free: 9.691 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002458/0.1528, allocations: 75.95 kB / 438.4 MB, free: 9.617 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003031/0.1531, allocations: 135.6 kB / 438.6 MB, free: 9.457 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003997/0.1535, allocations: 173.8 kB / 438.7 MB, free: 9.262 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.1535, allocations: 0 / 438.7 MB, free: 9.262 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006899/0.1542, allocations: 241.4 kB / 439 MB, free: 9.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.1542, allocations: 14.22 kB / 439 MB, free: 9.008 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.1542, allocations: 3.938 kB / 439 MB, free: 9.004 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.288e-05/0.1542, allocations: 4 kB / 439 MB, free: 9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00031/0.1545, allocations: 47.92 kB / 439 MB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.1546, allocations: 4 kB / 439 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006429/0.1552, allocations: 63.77 kB / 439.1 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.109e-05/0.1552, allocations: 8 kB / 439.1 MB, free: 8.879 MB / 366.1 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.0002551/0.1555, allocations: 161.8 kB / 439.3 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.1556, allocations: 27.8 kB / 439.3 MB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006746/0.1563, allocations: 203.7 kB / 439.5 MB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1563, allocations: 4 kB / 439.5 MB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1563, allocations: 0 / 439.5 MB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.1563, allocations: 0 / 439.5 MB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001354/0.1576, allocations: 0.6336 MB / 440.1 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1577, allocations: 0 / 440.1 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002552/0.1579, allocations: 35.92 kB / 440.2 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.1579, allocations: 3.984 kB / 440.2 MB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.512e-05/0.1579, allocations: 0 / 440.2 MB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.1579, allocations: 4 kB / 440.2 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1579, allocations: 0 / 440.2 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008398/0.1588, allocations: 382 kB / 440.5 MB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001407/0.1589, allocations: 116.9 kB / 440.7 MB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.1e-05/0.159, allocations: 0 / 440.7 MB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006557/0.1596, allocations: 55.92 kB / 440.7 MB, free: 7.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002835/0.1599, allocations: 75.81 kB / 440.8 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.109e-05/0.16, allocations: 12 kB / 440.8 MB, free: 7.074 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004161/0.1604, allocations: 241.9 kB / 441 MB, free: 6.836 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1604, allocations: 0 / 441 MB, free: 6.836 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006729/0.161, allocations: 83.78 kB / 441.1 MB, free: 6.754 MB / 366.1 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.0002057/0.1612, allocations: 103.2 kB / 441.2 MB, free: 6.641 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005668/0.1618, allocations: 171.8 kB / 441.4 MB, free: 6.473 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.1618, allocations: 0.5 kB / 441.4 MB, free: 6.473 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002973/0.1621, allocations: 99.89 kB / 441.5 MB, free: 6.375 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006913/0.1628, allocations: 56.8 kB / 441.5 MB, free: 6.316 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002173/0.165, allocations: 0.7617 MB / 442.3 MB, free: 5.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005681/0.1655, allocations: 0.7791 MB / 443.1 MB, free: 4.715 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001748/0.1657, allocations: 27.44 kB / 443.1 MB, free: 4.688 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1657, allocations: 0 / 443.1 MB, free: 4.688 MB / 366.1 MB Notification: Performance of Templates: time 0.01099/0.1767, allocations: 4.352 MB / 447.5 MB, free: 364 kB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 8.584688303992152]