Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 194.6 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 48.06 kB / 370.9 MB, free: 9.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.3216, allocations: 52.18 MB / 423.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.005023/0.3266, allocations: 2.789 MB / 425.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001802/0.3284, allocations: 0.6775 MB / 426.5 MB, free: 11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000225/0.3287, allocations: 15.94 kB / 426.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000311/0.329, allocations: 59.38 kB / 426.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003812/0.3294, allocations: 111.1 kB / 426.7 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004703/0.3298, allocations: 111.8 kB / 426.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005776/0.3304, allocations: 410.3 kB / 427.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003657/0.3308, allocations: 142.4 kB / 427.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002052/0.331, allocations: 167.4 kB / 427.5 MB, free: 10 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003054/0.3313, allocations: 167.2 kB / 427.7 MB, free: 9.836 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.725e-05/0.3313, allocations: 40 kB / 427.7 MB, free: 9.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000168/0.3315, allocations: 51.98 kB / 427.8 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000186/0.3317, allocations: 111.6 kB / 427.9 MB, free: 9.637 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002345/0.3319, allocations: 163.3 kB / 428 MB, free: 9.477 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000774/0.3327, allocations: 0.5044 MB / 428.5 MB, free: 8.973 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.3327, allocations: 4 kB / 428.5 MB, free: 8.969 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3327, allocations: 0 / 428.5 MB, free: 8.969 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.3327, allocations: 0 / 428.5 MB, free: 8.969 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.001747/0.3345, allocations: 0.7234 MB / 429.3 MB, free: 8.211 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.3345, allocations: 8.031 kB / 429.3 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.3346, allocations: 40.7 kB / 429.3 MB, free: 8.164 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006163/0.3352, allocations: 292.9 kB / 429.6 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.883e-05/0.3353, allocations: 25.03 kB / 429.6 MB, free: 7.832 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.325e-05/0.3353, allocations: 28.38 kB / 429.6 MB, free: 7.805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006806/0.336, allocations: 397.6 kB / 430 MB, free: 7.395 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.336, allocations: 0 / 430 MB, free: 7.395 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.724e-05/0.3361, allocations: 15.94 kB / 430.1 MB, free: 7.379 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.3361, allocations: 4 kB / 430.1 MB, free: 7.375 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000471/0.3366, allocations: 242.4 kB / 430.3 MB, free: 7.137 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001967/0.3385, allocations: 1.102 MB / 431.4 MB, free: 5.969 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004128/0.3389, allocations: 162.5 kB / 431.6 MB, free: 5.801 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002682/0.3392, allocations: 120.7 kB / 431.7 MB, free: 5.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/0.3392, allocations: 4 kB / 431.7 MB, free: 5.676 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.951e-05/0.3393, allocations: 38.5 kB / 431.7 MB, free: 5.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.432e-06/0.3393, allocations: 0 / 431.7 MB, free: 5.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005148/0.3398, allocations: 237.3 kB / 431.9 MB, free: 5.395 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.3399, allocations: 51.41 kB / 432 MB, free: 5.332 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003838/0.3402, allocations: 297.8 kB / 432.3 MB, free: 5.031 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.365e-05/0.3403, allocations: 29.7 kB / 432.3 MB, free: 4.996 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.3404, allocations: 220.2 kB / 432.5 MB, free: 4.777 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.006e-05/0.3405, allocations: 55.52 kB / 432.6 MB, free: 4.723 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001647/0.3407, allocations: 49.66 kB / 432.6 MB, free: 4.668 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.3409, allocations: 334.8 kB / 433 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.341, allocations: 71.95 kB / 433 MB, free: 4.262 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.3412, allocations: 131.7 kB / 433.2 MB, free: 4.105 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002589/0.3414, allocations: 170.6 kB / 433.3 MB, free: 3.914 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.3414, allocations: 4 kB / 433.3 MB, free: 3.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004136/0.3419, allocations: 241.1 kB / 433.6 MB, free: 3.668 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.3419, allocations: 8 kB / 433.6 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.463e-06/0.3419, allocations: 0 / 433.6 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.3419, allocations: 4 kB / 433.6 MB, free: 3.656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001837/0.3421, allocations: 51.92 kB / 433.6 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.381e-05/0.3421, allocations: 8.234 kB / 433.6 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003916/0.3425, allocations: 63.78 kB / 433.7 MB, free: 3.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.924e-05/0.3425, allocations: 8 kB / 433.7 MB, free: 3.527 MB / 334.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.0001834/0.3427, allocations: 157.7 kB / 433.9 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.978e-05/0.3428, allocations: 31.8 kB / 433.9 MB, free: 3.332 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004331/0.3432, allocations: 195.7 kB / 434.1 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.77e-06/0.3432, allocations: 4 kB / 434.1 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3432, allocations: 4 kB / 434.1 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.3432, allocations: 3.984 kB / 434.1 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007933/0.344, allocations: 0.5067 MB / 434.6 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.344, allocations: 0 / 434.6 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00016/0.3442, allocations: 31.98 kB / 434.6 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.3442, allocations: 0 / 434.6 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.936e-05/0.3442, allocations: 7.938 kB / 434.6 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.3442, allocations: 3.938 kB / 434.6 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3442, allocations: 0 / 434.6 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005593/0.3448, allocations: 384.5 kB / 435 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.533e-05/0.3448, allocations: 31.97 kB / 435.1 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.126e-05/0.3449, allocations: 4 kB / 435.1 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003913/0.3452, allocations: 51.92 kB / 435.1 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001862/0.3454, allocations: 79.86 kB / 435.2 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.3455, allocations: 4 kB / 435.2 MB, free: 1.965 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000257/0.3457, allocations: 221.2 kB / 435.4 MB, free: 1.746 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3457, allocations: 4 kB / 435.4 MB, free: 1.742 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004057/0.3461, allocations: 87.73 kB / 435.5 MB, free: 1.656 MB / 334.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.0001774/0.3463, allocations: 115.2 kB / 435.6 MB, free: 1.535 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003659/0.3467, allocations: 167.8 kB / 435.8 MB, free: 1.371 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3467, allocations: 3.938 kB / 435.8 MB, free: 1.367 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001814/0.3468, allocations: 107.1 kB / 435.9 MB, free: 1.266 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004/0.3472, allocations: 52.92 kB / 435.9 MB, free: 1.215 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001515/0.3488, allocations: 0.7204 MB / 436.6 MB, free: 476 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001861/0.3489, allocations: 172.8 kB / 436.8 MB, free: 284 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001336/0.3491, allocations: 26.28 kB / 436.8 MB, free: 256 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.804e-05/0.3492, allocations: 27.44 kB / 436.9 MB, free: 228 kB / 334.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3492, allocations: 4 kB / 436.9 MB, free: 224 kB / 334.1 MB Notification: Performance of Templates: time 0.009816/0.359, allocations: 4.689 MB / 441.6 MB, free: 11.59 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 5.108317701146007]