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.001299/0.001299, allocations: 114 kB / 21.17 MB, free: 0.7812 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.001404/0.001404, allocations: 216.1 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.406/1.406, allocations: 230.4 MB / 258.1 MB, free: 8.16 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.001889/0.001889, allocations: 67.83 kB / 378.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2936, allocations: 53.31 MB / 432 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.005257/0.2988, allocations: 3.02 MB / 435.1 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00157/0.3004, allocations: 0.744 MB / 435.8 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000206/0.3006, allocations: 15.94 kB / 435.8 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002358/0.3009, allocations: 55.44 kB / 435.9 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003012/0.3012, allocations: 111 kB / 436 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003731/0.3015, allocations: 107.8 kB / 436.1 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005035/0.302, allocations: 410.3 kB / 436.5 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003096/0.3023, allocations: 153.8 kB / 436.6 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001922/0.3025, allocations: 155.4 kB / 436.8 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000304/0.3028, allocations: 191.1 kB / 437 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.093e-05/0.3029, allocations: 40 kB / 437 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001235/0.303, allocations: 56 kB / 437.1 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001729/0.3032, allocations: 111.6 kB / 437.2 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001979/0.3034, allocations: 199.1 kB / 437.4 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006554/0.3041, allocations: 0.4956 MB / 437.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.3041, allocations: 0 / 437.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.001e-06/0.3041, allocations: 0 / 437.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.3041, allocations: 0 / 437.9 MB, free: 1.543 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.001848/0.3059, allocations: 0.8025 MB / 438.7 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.306, allocations: 12.03 kB / 438.7 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.738e-05/0.306, allocations: 48.7 kB / 438.7 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006283/0.3067, allocations: 346.7 kB / 439.1 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.3067, allocations: 21.03 kB / 439.1 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.151e-05/0.3068, allocations: 32.38 kB / 439.1 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006234/0.3074, allocations: 346.2 kB / 439.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.3074, allocations: 0 / 439.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.531e-05/0.3075, allocations: 16 kB / 439.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.814e-05/0.3075, allocations: 8 kB / 439.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004442/0.3079, allocations: 238.5 kB / 439.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002039/0.31, allocations: 1.308 MB / 441 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004145/0.3104, allocations: 158.5 kB / 441.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002755/0.3106, allocations: 116.7 kB / 441.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.086e-05/0.3107, allocations: 8 kB / 441.3 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.536e-05/0.3107, allocations: 38.56 kB / 441.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.222e-06/0.3107, allocations: 0 / 441.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005132/0.3112, allocations: 237.5 kB / 441.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.3113, allocations: 51.41 kB / 441.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004385/0.3117, allocations: 323 kB / 441.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.301e-05/0.3118, allocations: 29.7 kB / 442 MB, free: 13.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001736/0.3119, allocations: 212.4 kB / 442.2 MB, free: 13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.602e-05/0.312, allocations: 59.53 kB / 442.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.693e-05/0.3121, allocations: 49.66 kB / 442.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.3122, allocations: 330.8 kB / 442.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001415/0.3124, allocations: 75.95 kB / 442.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001864/0.3126, allocations: 135.7 kB / 442.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002509/0.3128, allocations: 170.9 kB / 443 MB, free: 12.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3128, allocations: 0 / 443 MB, free: 12.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004164/0.3132, allocations: 241.1 kB / 443.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.3133, allocations: 4 kB / 443.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.3133, allocations: 4 kB / 443.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.128e-05/0.3133, allocations: 4.25 kB / 443.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/0.3135, allocations: 51.92 kB / 443.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.3135, allocations: 0 / 443.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000391/0.3139, allocations: 71.7 kB / 443.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.805e-05/0.3139, allocations: 8 kB / 443.3 MB, free: 11.75 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.0001785/0.3141, allocations: 153.8 kB / 443.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.21e-05/0.3141, allocations: 35.8 kB / 443.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000418/0.3146, allocations: 204.8 kB / 443.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.3146, allocations: 4 kB / 443.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3146, allocations: 0 / 443.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.3146, allocations: 0 / 443.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009422/0.3155, allocations: 0.6281 MB / 444.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3155, allocations: 0 / 444.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001564/0.3157, allocations: 23.98 kB / 444.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.3157, allocations: 8.031 kB / 444.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.802e-05/0.3157, allocations: 4 kB / 444.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.925e-06/0.3157, allocations: 8 kB / 444.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3157, allocations: 0 / 444.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006036/0.3163, allocations: 383.5 kB / 444.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.3164, allocations: 104.9 kB / 444.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.678e-05/0.3165, allocations: 8 kB / 444.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004324/0.3169, allocations: 59.98 kB / 445 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001803/0.3171, allocations: 71.88 kB / 445 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.3171, allocations: 7.938 kB / 445 MB, free: 9.949 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002755/0.3174, allocations: 237.9 kB / 445.3 MB, free: 9.715 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3174, allocations: 0 / 445.3 MB, free: 9.715 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003689/0.3177, allocations: 95.72 kB / 445.4 MB, free: 9.621 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.0001875/0.3179, allocations: 111.2 kB / 445.5 MB, free: 9.504 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003805/0.3183, allocations: 175.7 kB / 445.6 MB, free: 9.332 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3183, allocations: 0 / 445.6 MB, free: 9.332 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001795/0.3185, allocations: 99.88 kB / 445.7 MB, free: 9.234 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004334/0.3189, allocations: 57.36 kB / 445.8 MB, free: 9.176 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001621/0.3206, allocations: 0.7555 MB / 446.5 MB, free: 8.379 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004642/0.321, allocations: 0.7714 MB / 447.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.3211, allocations: 27.44 kB / 447.3 MB, free: 7.551 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3211, allocations: 0 / 447.3 MB, free: 7.551 MB / 350.1 MB Notification: Performance of Templates: time 0.007524/0.3286, allocations: 4.361 MB / 451.7 MB, free: 3.219 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 -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: 8.228290097787976]