Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001746/0.001746, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002534/0.002534, allocations: 211.4 kB / 24.48 MB, free: 3.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.993/1.993, allocations: 230.6 MB / 258.2 MB, free: 7.801 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002341/0.002341, allocations: 51.92 kB / 379 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3636/0.3659, allocations: 53.36 MB / 432.3 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.006206/0.3721, allocations: 2.798 MB / 435.1 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001987/0.3741, allocations: 0.7167 MB / 435.8 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002352/0.3743, allocations: 11.94 kB / 435.8 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002927/0.3746, allocations: 67.36 kB / 435.9 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004087/0.375, allocations: 103.1 kB / 436 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000438/0.3755, allocations: 103.9 kB / 436.1 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006444/0.3761, allocations: 414.3 kB / 436.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000378/0.3765, allocations: 146.4 kB / 436.7 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002549/0.3767, allocations: 175.3 kB / 436.8 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003611/0.3771, allocations: 175.3 kB / 437 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.427e-05/0.3772, allocations: 40 kB / 437 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001844/0.3774, allocations: 63.92 kB / 437.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002085/0.3776, allocations: 107.6 kB / 437.2 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002675/0.3778, allocations: 175.2 kB / 437.4 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008428/0.3787, allocations: 0.4893 MB / 437.9 MB, free: 1.176 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3787, allocations: 0 / 437.9 MB, free: 1.176 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3787, allocations: 0 / 437.9 MB, free: 1.176 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.3787, allocations: 0 / 437.9 MB, free: 1.176 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.002423/0.3811, allocations: 0.7312 MB / 438.6 MB, free: 420 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.3812, allocations: 8.031 kB / 438.6 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001393/0.3813, allocations: 40.7 kB / 438.6 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007689/0.3821, allocations: 292.9 kB / 438.9 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.749e-05/0.3821, allocations: 21.03 kB / 439 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.3822, allocations: 32.38 kB / 439 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000967/0.3832, allocations: 397.7 kB / 439.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.3832, allocations: 0 / 439.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.427e-05/0.3833, allocations: 16 kB / 439.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.3833, allocations: 11.98 kB / 439.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006917/0.384, allocations: 238.4 kB / 439.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002625/0.3866, allocations: 1.102 MB / 440.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005406/0.3871, allocations: 158.5 kB / 440.9 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004012/0.3875, allocations: 128.8 kB / 441 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.918e-05/0.3876, allocations: 0 / 441 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.223e-05/0.3876, allocations: 42.44 kB / 441.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.693e-06/0.3876, allocations: 0 / 441.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007327/0.3884, allocations: 229.6 kB / 441.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.582e-05/0.3884, allocations: 51.41 kB / 441.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000546/0.389, allocations: 305.8 kB / 441.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.808e-05/0.389, allocations: 25.7 kB / 441.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002226/0.3892, allocations: 220.3 kB / 441.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.921e-05/0.3893, allocations: 59.47 kB / 441.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/0.3894, allocations: 41.7 kB / 442 MB, free: 12.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000197/0.3896, allocations: 338.8 kB / 442.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002162/0.3899, allocations: 71.95 kB / 442.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002969/0.3902, allocations: 131.7 kB / 442.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003704/0.3905, allocations: 159.6 kB / 442.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.3905, allocations: 4 kB / 442.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006541/0.3912, allocations: 248 kB / 442.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.3912, allocations: 8 kB / 442.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3912, allocations: 0 / 442.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/0.3912, allocations: 4 kB / 442.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002915/0.3915, allocations: 43.92 kB / 443 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.79e-05/0.3915, allocations: 12.17 kB / 443 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005859/0.3921, allocations: 63.78 kB / 443 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.059e-05/0.3922, allocations: 12 kB / 443 MB, free: 11.72 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.00024/0.3924, allocations: 153.8 kB / 443.2 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.524e-05/0.3925, allocations: 31.73 kB / 443.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006246/0.3931, allocations: 195.7 kB / 443.4 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.3931, allocations: 7.984 kB / 443.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3932, allocations: 4 kB / 443.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3932, allocations: 0 / 443.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001181/0.3943, allocations: 0.5127 MB / 443.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.3943, allocations: 0 / 443.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002445/0.3946, allocations: 31.98 kB / 444 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.117e-06/0.3946, allocations: 0 / 444 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/0.3946, allocations: 7.938 kB / 444 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.3946, allocations: 4 kB / 444 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.3946, allocations: 0 / 444 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007946/0.3954, allocations: 376.5 kB / 444.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.865e-05/0.3955, allocations: 39.91 kB / 444.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.462e-05/0.3956, allocations: 4 kB / 444.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006308/0.3962, allocations: 51.92 kB / 444.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002686/0.3965, allocations: 75.86 kB / 444.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.033e-05/0.3965, allocations: 8 kB / 444.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003861/0.3969, allocations: 221.1 kB / 444.7 MB, free: 9.941 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3969, allocations: 4 kB / 444.7 MB, free: 9.938 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006953/0.3976, allocations: 87.78 kB / 444.8 MB, free: 9.852 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.0001942/0.3978, allocations: 107.2 kB / 444.9 MB, free: 9.738 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005563/0.3983, allocations: 175.7 kB / 445.1 MB, free: 9.566 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3983, allocations: 0 / 445.1 MB, free: 9.566 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002898/0.3986, allocations: 102.7 kB / 445.2 MB, free: 9.469 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006454/0.3993, allocations: 47.73 kB / 445.3 MB, free: 9.426 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002196/0.4015, allocations: 0.716 MB / 446 MB, free: 8.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.4017, allocations: 168.8 kB / 446.1 MB, free: 8.496 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002137/0.4019, allocations: 38.28 kB / 446.2 MB, free: 8.457 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.4021, allocations: 23.44 kB / 446.2 MB, free: 8.434 MB / 350.1 MB Notification: Performance of SimCode: time 8.41e-07/0.4021, allocations: 0 / 446.2 MB, free: 8.434 MB / 350.1 MB Notification: Performance of Templates: time 0.01399/0.416, allocations: 4.714 MB / 450.9 MB, free: 3.77 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 7.343143776000943]