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.001867/0.001867, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001809/0.001809, allocations: 204.5 kB / 23.72 MB, free: 4.391 MB / 14.72 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 1.516/1.516, allocations: 230.5 MB / 257.4 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002368/0.002368, allocations: 71.88 kB / 378.2 MB, free: 2.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.2935, allocations: 53.41 MB / 431.6 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004456/0.298, allocations: 2.779 MB / 434.4 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.2994, allocations: 0.7269 MB / 435.1 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001549/0.2995, allocations: 7.938 kB / 435.1 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002195/0.2997, allocations: 59.44 kB / 435.2 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002676/0.3, allocations: 111.1 kB / 435.3 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003163/0.3003, allocations: 107.8 kB / 435.4 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004533/0.3008, allocations: 410.3 kB / 435.8 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002633/0.301, allocations: 134.4 kB / 435.9 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001805/0.3012, allocations: 163.4 kB / 436.1 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002572/0.3015, allocations: 163.2 kB / 436.3 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.26e-05/0.3015, allocations: 44 kB / 436.3 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001281/0.3017, allocations: 59.94 kB / 436.4 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001635/0.3018, allocations: 115.6 kB / 436.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001789/0.302, allocations: 163.3 kB / 436.6 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005894/0.3026, allocations: 0.4939 MB / 437.1 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3026, allocations: 0 / 437.1 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3026, allocations: 0 / 437.1 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.3026, allocations: 7.938 kB / 437.1 MB, free: 0.9844 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.001645/0.3043, allocations: 0.7272 MB / 437.9 MB, free: 228 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.3043, allocations: 11.98 kB / 437.9 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.899e-05/0.3044, allocations: 40.7 kB / 437.9 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005408/0.3049, allocations: 288.9 kB / 438.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.808e-05/0.3049, allocations: 25.03 kB / 438.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.745e-05/0.305, allocations: 28.38 kB / 438.3 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006275/0.3056, allocations: 401.6 kB / 438.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.3056, allocations: 0 / 438.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.298e-05/0.3057, allocations: 12 kB / 438.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.3057, allocations: 8 kB / 438.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004544/0.3061, allocations: 242.4 kB / 438.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/0.3079, allocations: 1.098 MB / 440 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003806/0.3083, allocations: 166.5 kB / 440.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002583/0.3086, allocations: 124.7 kB / 440.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.3086, allocations: 0 / 440.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.831e-05/0.3086, allocations: 46.5 kB / 440.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.002e-06/0.3086, allocations: 0 / 440.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004879/0.3091, allocations: 225.6 kB / 440.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.145e-05/0.3092, allocations: 51.41 kB / 440.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003639/0.3095, allocations: 305.8 kB / 440.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.3096, allocations: 29.7 kB / 440.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001896/0.3098, allocations: 216.3 kB / 441.1 MB, free: 12.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.275e-05/0.3098, allocations: 55.48 kB / 441.2 MB, free: 12.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.797e-05/0.3099, allocations: 49.7 kB / 441.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.3101, allocations: 334.8 kB / 441.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.3102, allocations: 75.89 kB / 441.6 MB, free: 12.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001946/0.3104, allocations: 136.3 kB / 441.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002541/0.3107, allocations: 163.6 kB / 441.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3107, allocations: 0 / 441.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004072/0.3111, allocations: 244.1 kB / 442.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.3111, allocations: 8 kB / 442.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.3111, allocations: 0 / 442.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.3111, allocations: 11.92 kB / 442.2 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001848/0.3113, allocations: 47.92 kB / 442.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.3113, allocations: 4 kB / 442.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003783/0.3117, allocations: 68.02 kB / 442.3 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.797e-05/0.3117, allocations: 12 kB / 442.3 MB, free: 11.52 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.0001691/0.3119, allocations: 157.7 kB / 442.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.895e-05/0.3119, allocations: 27.8 kB / 442.5 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000398/0.3123, allocations: 195 kB / 442.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3123, allocations: 4 kB / 442.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.3123, allocations: 0 / 442.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.3123, allocations: 3.984 kB / 442.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007761/0.3131, allocations: 0.5106 MB / 443.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.35e-05/0.3131, allocations: 3.984 kB / 443.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001559/0.3133, allocations: 27.98 kB / 443.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.3133, allocations: 0 / 443.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.033e-05/0.3133, allocations: 8 kB / 443.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.3133, allocations: 4 kB / 443.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3133, allocations: 0 / 443.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005377/0.3139, allocations: 380.5 kB / 443.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.518e-05/0.3139, allocations: 31.81 kB / 443.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.227e-05/0.314, allocations: 8 kB / 443.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004063/0.3144, allocations: 55.95 kB / 443.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001719/0.3145, allocations: 79.86 kB / 443.8 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.3146, allocations: 4 kB / 443.8 MB, free: 9.961 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002467/0.3148, allocations: 221.2 kB / 444 MB, free: 9.746 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3148, allocations: 0 / 444 MB, free: 9.746 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004183/0.3152, allocations: 83.78 kB / 444.1 MB, free: 9.664 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.0001573/0.3154, allocations: 107.2 kB / 444.2 MB, free: 9.551 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003613/0.3157, allocations: 175.7 kB / 444.4 MB, free: 9.379 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3157, allocations: 0 / 444.4 MB, free: 9.379 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000186/0.3159, allocations: 107 kB / 444.5 MB, free: 9.277 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000381/0.3163, allocations: 48.86 kB / 444.5 MB, free: 9.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.3177, allocations: 0.7199 MB / 445.2 MB, free: 8.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000175/0.3179, allocations: 168.8 kB / 445.4 MB, free: 8.297 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001384/0.318, allocations: 34.3 kB / 445.4 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.467e-05/0.3181, allocations: 31.42 kB / 445.5 MB, free: 8.23 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3181, allocations: 0 / 445.5 MB, free: 8.23 MB / 350.1 MB Notification: Performance of Templates: time 0.009311/0.3274, allocations: 4.64 MB / 450.1 MB, free: 3.645 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.08088481798768]