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.001224/0.001224, allocations: 76.05 kB / 10 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002131/0.003355, allocations: 453.9 kB / 10.45 MB, free: 244 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.001362/0.001362, allocations: 162 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001568/0.00293, allocations: 479.6 kB / 11.82 MB, free: 2.34 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.9455/0.9455, allocations: 177.5 MB / 190 MB, free: 4.809 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1257/1.071, allocations: 53.87 MB / 243.9 MB, free: 14.86 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.874e-06/1.874e-06, allocations: 0 / 245.2 MB, free: 13.6 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.127e-05/2.314e-05, allocations: 9.406 kB / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004475/0.004498, allocations: 3.023 MB / 248.2 MB, free: 10.55 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001556/0.006054, allocations: 0.7669 MB / 249 MB, free: 9.773 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002322/0.006286, allocations: 11.94 kB / 249 MB, free: 9.762 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001517/0.006438, allocations: 67.31 kB / 249.1 MB, free: 9.695 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002158/0.006654, allocations: 111 kB / 249.2 MB, free: 9.586 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002277/0.006881, allocations: 111.8 kB / 249.3 MB, free: 9.477 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003071/0.007188, allocations: 426.1 kB / 249.7 MB, free: 9.059 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.007368, allocations: 142.3 kB / 249.8 MB, free: 8.918 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000227/0.007595, allocations: 284.1 kB / 250.1 MB, free: 8.641 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000195/0.00779, allocations: 147.6 kB / 250.3 MB, free: 8.496 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.8e-05/0.007828, allocations: 40 kB / 250.3 MB, free: 8.457 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001051/0.007933, allocations: 55.94 kB / 250.3 MB, free: 8.402 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.008043, allocations: 83.77 kB / 250.4 MB, free: 8.32 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.532e-05/0.008128, allocations: 123.8 kB / 250.5 MB, free: 8.199 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003367/0.008465, allocations: 283 kB / 250.8 MB, free: 7.922 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.914e-06/0.008473, allocations: 0 / 250.8 MB, free: 7.922 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.008474, allocations: 0 / 250.8 MB, free: 7.922 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.008483, allocations: 4 kB / 250.8 MB, free: 7.918 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.0008464/0.00933, allocations: 0.7373 MB / 251.6 MB, free: 7.156 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.009362, allocations: 12.03 kB / 251.6 MB, free: 7.145 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.763e-05/0.00943, allocations: 48.89 kB / 251.6 MB, free: 7.098 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003206/0.009751, allocations: 220.7 kB / 251.8 MB, free: 6.855 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.794e-05/0.009769, allocations: 25.03 kB / 251.9 MB, free: 6.832 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.033e-05/0.009809, allocations: 32.33 kB / 251.9 MB, free: 6.801 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002692/0.01008, allocations: 309.3 kB / 252.2 MB, free: 6.465 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.01009, allocations: 192 / 252.2 MB, free: 6.465 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.047e-05/0.01011, allocations: 16.36 kB / 252.2 MB, free: 6.449 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.01012, allocations: 11.94 kB / 252.2 MB, free: 6.438 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001085/0.01022, allocations: 75.33 kB / 252.3 MB, free: 6.363 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008639/0.01109, allocations: 0.9029 MB / 253.2 MB, free: 5.41 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001779/0.01127, allocations: 142.4 kB / 253.3 MB, free: 5.262 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.966e-05/0.01136, allocations: 64.77 kB / 253.4 MB, free: 5.195 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.964e-05/0.01139, allocations: 4 kB / 253.4 MB, free: 5.191 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001956/0.01158, allocations: 34.56 kB / 253.4 MB, free: 5.148 MB / 250.7 MB Notification: Performance of pre-optimization done (n=16): time 1.122e-06/0.01158, allocations: 4 kB / 253.4 MB, free: 5.145 MB / 250.7 MB Notification: Performance of matching and sorting (n=16): time 0.0001746/0.01176, allocations: 108.8 kB / 253.6 MB, free: 5.035 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.086e-05/0.01178, allocations: 59.34 kB / 253.6 MB, free: 4.965 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.01192, allocations: 249 kB / 253.9 MB, free: 4.707 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.01193, allocations: 29.7 kB / 253.9 MB, free: 4.672 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.239e-05/0.012, allocations: 196.7 kB / 254.1 MB, free: 4.477 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.923e-05/0.01203, allocations: 55.52 kB / 254.1 MB, free: 4.422 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.124e-05/0.01209, allocations: 53.62 kB / 254.2 MB, free: 4.363 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.016e-05/0.01217, allocations: 338.7 kB / 254.5 MB, free: 4.023 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.403e-05/0.0122, allocations: 22.81 kB / 254.5 MB, free: 4 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.029e-05/0.01226, allocations: 80.36 kB / 254.6 MB, free: 3.895 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001004/0.01236, allocations: 127.5 kB / 254.7 MB, free: 3.742 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.01236, allocations: 4 kB / 254.7 MB, free: 3.738 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000153/0.01252, allocations: 147.1 kB / 254.9 MB, free: 3.59 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/0.01253, allocations: 4 kB / 254.9 MB, free: 3.586 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.932e-06/0.01253, allocations: 4 kB / 254.9 MB, free: 3.582 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.01254, allocations: 4 kB / 254.9 MB, free: 3.578 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001599/0.0127, allocations: 59.84 kB / 255 MB, free: 3.52 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.01271, allocations: 4 kB / 255 MB, free: 3.516 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.01283, allocations: 48.11 kB / 255 MB, free: 3.469 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.373e-05/0.01284, allocations: 8 kB / 255 MB, free: 3.461 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 7.931e-05/0.01292, allocations: 128.6 kB / 255.1 MB, free: 3.324 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.912e-05/0.01295, allocations: 15.98 kB / 255.2 MB, free: 3.309 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001478/0.0131, allocations: 115.7 kB / 255.3 MB, free: 3.195 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.0131, allocations: 0 / 255.3 MB, free: 3.195 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.0131, allocations: 7.922 kB / 255.3 MB, free: 3.188 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.01311, allocations: 0 / 255.3 MB, free: 3.188 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003334/0.01344, allocations: 387.5 kB / 255.7 MB, free: 2.777 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.01344, allocations: 0 / 255.7 MB, free: 2.777 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00011/0.01355, allocations: 47.91 kB / 255.7 MB, free: 2.73 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.847e-05/0.01358, allocations: 27.78 kB / 255.7 MB, free: 2.703 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.01358, allocations: 0 / 255.7 MB, free: 2.703 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.397e-06/0.01359, allocations: 0 / 255.7 MB, free: 2.703 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.01359, allocations: 4 kB / 255.7 MB, free: 2.699 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.0136, allocations: 0 / 255.7 MB, free: 2.699 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001835/0.01378, allocations: 271.3 kB / 256 MB, free: 2.418 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.218e-05/0.0138, allocations: 7.922 kB / 256 MB, free: 2.41 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.01392, allocations: 40.03 kB / 256 MB, free: 2.371 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.286e-05/0.014, allocations: 51.84 kB / 256.1 MB, free: 2.32 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.498e-06/0.01401, allocations: 8 kB / 256.1 MB, free: 2.312 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.777e-05/0.01407, allocations: 86.77 kB / 256.2 MB, free: 2.227 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.01407, allocations: 0 / 256.2 MB, free: 2.227 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001966/0.01427, allocations: 91.73 kB / 256.3 MB, free: 2.137 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.0001201/0.01439, allocations: 92.34 kB / 256.4 MB, free: 2.035 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001304/0.01452, allocations: 89.08 kB / 256.5 MB, free: 1.945 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/0.01453, allocations: 4 kB / 256.5 MB, free: 1.941 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.826e-05/0.0146, allocations: 59.58 kB / 256.5 MB, free: 1.879 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005655/0.01516, allocations: 416.6 kB / 256.9 MB, free: 1.391 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002362/0.01753, allocations: 0.5883 MB / 257.5 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.005e-05/0.01758, allocations: 92.3 kB / 257.6 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.16e-05/0.01766, allocations: 38.27 kB / 257.6 MB, free: 0.625 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001293/0.01779, allocations: 99.34 kB / 257.7 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01779, allocations: 0 / 257.7 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of Templates: time 0.005632/0.02342, allocations: 4.161 MB / 261.9 MB, free: 12.43 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.808602343313396]