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.001281/0.001281, allocations: 78.95 kB / 20.68 MB, free: 1.035 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.001298/0.001298, allocations: 149.3 kB / 23.94 MB, free: 4.176 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.456/1.456, allocations: 173.3 MB / 200.4 MB, free: 12.89 MB / 190.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 1.653e-06/1.653e-06, allocations: 0 / 318.9 MB, free: 3.578 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.069e-05/3.234e-05, allocations: 4.344 kB / 318.9 MB, free: 3.574 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.0041/0.004133, allocations: 2.77 MB / 321.7 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.00532, allocations: 0.6838 MB / 322.4 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001829/0.005503, allocations: 11.19 kB / 322.4 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002244/0.005728, allocations: 63.69 kB / 322.4 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002784/0.006006, allocations: 113.3 kB / 322.5 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003553/0.006361, allocations: 116.8 kB / 322.7 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004208/0.006782, allocations: 428.3 kB / 323.1 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002493/0.007031, allocations: 144.9 kB / 323.2 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002444/0.007276, allocations: 240.4 kB / 323.5 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002283/0.007504, allocations: 139.5 kB / 323.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.813e-05/0.007562, allocations: 39.88 kB / 323.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001276/0.00769, allocations: 54.67 kB / 323.7 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001619/0.007851, allocations: 110 kB / 323.8 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001486/0.008, allocations: 143.7 kB / 323.9 MB, free: 468 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005808/0.008581, allocations: 0.5004 MB / 324.4 MB, free: 268 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.008585, allocations: 4.703 kB / 324.4 MB, free: 264 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.008586, allocations: 0 / 324.4 MB, free: 264 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.008593, allocations: 0 / 324.4 MB, free: 264 kB / 286.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.001658/0.01025, allocations: 0.7258 MB / 325.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.01029, allocations: 10.77 kB / 325.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.479e-05/0.01038, allocations: 41.02 kB / 325.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005665/0.01095, allocations: 285.3 kB / 325.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.287e-05/0.01098, allocations: 25.06 kB / 325.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.876e-05/0.01104, allocations: 29.44 kB / 325.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006554/0.0117, allocations: 402.8 kB / 325.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.01171, allocations: 1.281 kB / 325.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.607e-05/0.01175, allocations: 15.97 kB / 326 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.625e-05/0.01176, allocations: 11.69 kB / 326 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004644/0.01223, allocations: 236.1 kB / 326.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001893/0.01412, allocations: 1.101 MB / 327.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004192/0.01454, allocations: 164.8 kB / 327.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002657/0.0148, allocations: 116.8 kB / 327.6 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.101e-05/0.01483, allocations: 3.312 kB / 327.6 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.01486, allocations: 33.45 kB / 327.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.343e-06/0.01487, allocations: 0 / 327.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004875/0.01535, allocations: 239 kB / 327.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/0.0154, allocations: 54.19 kB / 327.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003732/0.01577, allocations: 299.7 kB / 328.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.856e-05/0.01581, allocations: 26.7 kB / 328.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001594/0.01597, allocations: 220.6 kB / 328.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.556e-05/0.01603, allocations: 55.55 kB / 328.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.62e-05/0.01613, allocations: 53.62 kB / 328.5 MB, free: 13.58 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.01629, allocations: 331.7 kB / 328.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.01644, allocations: 72.89 kB / 328.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002038/0.01664, allocations: 134.1 kB / 329.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002549/0.0169, allocations: 161 kB / 329.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.0169, allocations: 1.406 kB / 329.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004367/0.01734, allocations: 238.3 kB / 329.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.01735, allocations: 6.469 kB / 329.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.01736, allocations: 2.875 kB / 329.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.01738, allocations: 11.06 kB / 329.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001913/0.01757, allocations: 44.97 kB / 329.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.395e-06/0.01758, allocations: 3.344 kB / 329.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000449/0.01803, allocations: 69.42 kB / 329.6 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.478e-05/0.01806, allocations: 9.344 kB / 329.6 MB, free: 12.87 MB / 302.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.0001974/0.01826, allocations: 158.5 kB / 329.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.188e-05/0.01832, allocations: 26.86 kB / 329.8 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004799/0.0188, allocations: 207 kB / 330 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.01881, allocations: 7.234 kB / 330 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.01881, allocations: 0 / 330 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.01882, allocations: 1.219 kB / 330 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008366/0.01966, allocations: 0.5031 MB / 330.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.01966, allocations: 5.375 kB / 330.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001748/0.01984, allocations: 34.22 kB / 330.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.01984, allocations: 1.812 kB / 330.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.01986, allocations: 2.469 kB / 330.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.01986, allocations: 6.125 kB / 330.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.01986, allocations: 1.188 kB / 330.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005471/0.02041, allocations: 374.2 kB / 330.9 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.06e-05/0.02048, allocations: 38.2 kB / 330.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.678e-05/0.02053, allocations: 6 kB / 330.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004436/0.02097, allocations: 54.83 kB / 331 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001904/0.02116, allocations: 78.42 kB / 331.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.859e-05/0.02118, allocations: 5.406 kB / 331.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002729/0.02145, allocations: 219.7 kB / 331.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.02145, allocations: 0 / 331.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004152/0.02187, allocations: 93.97 kB / 331.4 MB, free: 11.8 MB / 302.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.0002124/0.02208, allocations: 108.1 kB / 331.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003653/0.02244, allocations: 174.9 kB / 331.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.02245, allocations: 5.281 kB / 331.7 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000187/0.02263, allocations: 108.2 kB / 331.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003969/0.02303, allocations: 42.05 kB / 331.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001518/0.02455, allocations: 0.6506 MB / 332.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002227/0.02477, allocations: 177 kB / 332.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001353/0.02491, allocations: 28.64 kB / 332.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.514e-05/0.025, allocations: 23.53 kB / 332.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.025, allocations: 5.031 kB / 332.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of Templates: time 0.009773/0.03478, allocations: 4.319 MB / 337 MB, free: 8.922 MB / 302.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: 4.880153454840183]