Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001848/0.001848, allocations: 110.4 kB / 21.17 MB, free: 0.7852 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.002142/0.002142, allocations: 217.4 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.517/1.517, allocations: 230.4 MB / 258.1 MB, free: 8.141 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002021/0.002021, allocations: 71.84 kB / 378.7 MB, free: 2.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/0.3013, allocations: 53.31 MB / 432 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004956/0.3063, allocations: 3.024 MB / 435.1 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001615/0.3079, allocations: 0.7556 MB / 435.8 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002033/0.3081, allocations: 8 kB / 435.8 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002392/0.3083, allocations: 59.38 kB / 435.9 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002765/0.3086, allocations: 107.1 kB / 436 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003563/0.309, allocations: 99.89 kB / 436.1 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004885/0.3095, allocations: 422.2 kB / 436.5 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002883/0.3097, allocations: 145.8 kB / 436.6 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001835/0.3099, allocations: 159.4 kB / 436.8 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002935/0.3102, allocations: 187.1 kB / 437 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.402e-05/0.3103, allocations: 40 kB / 437 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001313/0.3104, allocations: 63.92 kB / 437.1 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001599/0.3106, allocations: 99.72 kB / 437.2 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002075/0.3108, allocations: 211 kB / 437.4 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006378/0.3114, allocations: 0.4918 MB / 437.9 MB, free: 1.488 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.3114, allocations: 8 kB / 437.9 MB, free: 1.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3114, allocations: 3.938 kB / 437.9 MB, free: 1.477 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.3114, allocations: 0 / 437.9 MB, free: 1.477 MB / 334.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.001793/0.3132, allocations: 0.7948 MB / 438.7 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.3133, allocations: 8.031 kB / 438.7 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.278e-05/0.3134, allocations: 40.7 kB / 438.7 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005647/0.3139, allocations: 350.7 kB / 439.1 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.314, allocations: 25.03 kB / 439.1 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.072e-05/0.314, allocations: 28.38 kB / 439.1 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006361/0.3147, allocations: 350.2 kB / 439.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.3147, allocations: 0 / 439.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.581e-05/0.3147, allocations: 12 kB / 439.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.3147, allocations: 8 kB / 439.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004474/0.3152, allocations: 238.4 kB / 439.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001987/0.3171, allocations: 1.296 MB / 441 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004063/0.3176, allocations: 170.5 kB / 441.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002652/0.3178, allocations: 120.7 kB / 441.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.679e-05/0.3179, allocations: 3.984 kB / 441.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.143e-05/0.3179, allocations: 34.56 kB / 441.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.302e-06/0.3179, allocations: 0 / 441.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.000508/0.3184, allocations: 233.6 kB / 441.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/0.3184, allocations: 55.41 kB / 441.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003849/0.3188, allocations: 319 kB / 441.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.3189, allocations: 25.7 kB / 441.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.319, allocations: 220.3 kB / 442.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.402e-05/0.3191, allocations: 55.53 kB / 442.2 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.16e-05/0.3192, allocations: 49.66 kB / 442.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.3193, allocations: 334.8 kB / 442.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.3195, allocations: 71.97 kB / 442.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001973/0.3197, allocations: 135.7 kB / 442.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002819/0.32, allocations: 170.4 kB / 443 MB, free: 12.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.32, allocations: 0 / 443 MB, free: 12.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004312/0.3204, allocations: 241.4 kB / 443.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.3204, allocations: 15.97 kB / 443.2 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.3204, allocations: 0 / 443.2 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.3204, allocations: 7.938 kB / 443.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001954/0.3206, allocations: 43.97 kB / 443.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.3206, allocations: 7.938 kB / 443.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004128/0.3211, allocations: 67.7 kB / 443.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.061e-05/0.3211, allocations: 12 kB / 443.3 MB, free: 11.69 MB / 350.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.0001695/0.3213, allocations: 153.8 kB / 443.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.493e-05/0.3213, allocations: 27.8 kB / 443.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004246/0.3217, allocations: 203.7 kB / 443.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.3217, allocations: 4 kB / 443.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3218, allocations: 0 / 443.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3218, allocations: 0 / 443.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008941/0.3227, allocations: 0.6386 MB / 444.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3227, allocations: 0 / 444.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001671/0.3228, allocations: 27.98 kB / 444.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.3228, allocations: 3.938 kB / 444.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.3228, allocations: 0 / 444.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.3228, allocations: 4 kB / 444.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3228, allocations: 0 / 444.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005657/0.3234, allocations: 384.5 kB / 444.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.3235, allocations: 108.9 kB / 444.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.57e-05/0.3236, allocations: 4 kB / 444.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004403/0.324, allocations: 51.92 kB / 444.9 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001852/0.3242, allocations: 75.88 kB / 445 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.3242, allocations: 8 kB / 445 MB, free: 9.902 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000282/0.3245, allocations: 241.9 kB / 445.3 MB, free: 9.664 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3245, allocations: 3.938 kB / 445.3 MB, free: 9.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003922/0.3249, allocations: 83.78 kB / 445.3 MB, free: 9.578 MB / 350.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.0001664/0.3251, allocations: 115.2 kB / 445.5 MB, free: 9.457 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003869/0.3254, allocations: 174.7 kB / 445.6 MB, free: 9.289 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3254, allocations: 0.5 kB / 445.6 MB, free: 9.289 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001875/0.3256, allocations: 107.9 kB / 445.7 MB, free: 9.184 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004549/0.3261, allocations: 60.72 kB / 445.8 MB, free: 9.121 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001784/0.3279, allocations: 0.7265 MB / 446.5 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005225/0.3284, allocations: 0.7714 MB / 447.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001533/0.3285, allocations: 34.28 kB / 447.3 MB, free: 7.527 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.125e-05/0.3286, allocations: 27.44 kB / 447.3 MB, free: 7.5 MB / 350.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3286, allocations: 0 / 447.3 MB, free: 7.5 MB / 350.1 MB Notification: Performance of Templates: time 0.01135/0.34, allocations: 4.603 MB / 452 MB, free: 2.945 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_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: 5.227642085868865]