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.001011/0.001011, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 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.001049/0.001049, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 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 0.9438/0.9438, allocations: 173.4 MB / 201.2 MB, free: 9.344 MB / 186.7 MB " [Timeout remaining time 179] 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 3.075e-06/3.075e-06, allocations: 4 kB / 268 MB, free: 6.465 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.835e-05/3.143e-05, allocations: 9.906 kB / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004022/0.004053, allocations: 2.977 MB / 271 MB, free: 3.461 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.005429, allocations: 0.7088 MB / 271.7 MB, free: 2.746 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000182/0.005611, allocations: 7.938 kB / 271.7 MB, free: 2.738 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002022/0.005813, allocations: 63.42 kB / 271.7 MB, free: 2.676 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002639/0.006077, allocations: 115 kB / 271.9 MB, free: 2.562 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003316/0.006408, allocations: 107.8 kB / 272 MB, free: 2.457 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003521/0.006761, allocations: 426 kB / 272.4 MB, free: 2.039 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002193/0.00698, allocations: 138.4 kB / 272.5 MB, free: 1.906 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002645/0.007244, allocations: 239.5 kB / 272.7 MB, free: 1.672 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002216/0.007466, allocations: 155.6 kB / 272.9 MB, free: 1.52 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.894e-05/0.007515, allocations: 40 kB / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001156/0.007631, allocations: 63.86 kB / 273 MB, free: 1.418 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003273/0.007958, allocations: 115.6 kB / 273.1 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.008066, allocations: 143.7 kB / 273.3 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003628/0.008429, allocations: 306.9 kB / 273.6 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.008432, allocations: 0 / 273.6 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.008434, allocations: 0 / 273.6 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.493e-06/0.008441, allocations: 0 / 273.6 MB, free: 0.8633 MB / 250.7 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.0009255/0.009366, allocations: 0.7882 MB / 274.3 MB, free: 36 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.009407, allocations: 12.03 kB / 274.4 MB, free: 24 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.009515, allocations: 64.31 kB / 274.4 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005968/0.01011, allocations: 275.4 kB / 274.7 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/0.01013, allocations: 25.03 kB / 274.7 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.313e-05/0.01018, allocations: 36.31 kB / 274.7 MB, free: 15.61 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003595/0.01053, allocations: 319.1 kB / 275.1 MB, free: 15.26 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.01054, allocations: 192 / 275.1 MB, free: 15.26 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.309e-05/0.01057, allocations: 16.69 kB / 275.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.01058, allocations: 8 kB / 275.1 MB, free: 15.24 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001838/0.01076, allocations: 119.7 kB / 275.2 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/0.01198, allocations: 1.221 MB / 276.4 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005746/0.01255, allocations: 127.1 kB / 276.5 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.01269, allocations: 67.66 kB / 276.6 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.406e-05/0.01273, allocations: 7.938 kB / 276.6 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.381e-05/0.01275, allocations: 37.39 kB / 276.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.452e-06/0.01275, allocations: 0 / 276.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003013/0.01306, allocations: 145.7 kB / 276.8 MB, free: 13.42 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.795e-05/0.01308, allocations: 55.34 kB / 276.8 MB, free: 13.35 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002206/0.0133, allocations: 324.2 kB / 277.2 MB, free: 13.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.01332, allocations: 29.7 kB / 277.2 MB, free: 12.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.01343, allocations: 263.1 kB / 277.5 MB, free: 12.72 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.468e-05/0.01347, allocations: 63.47 kB / 277.5 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.097e-05/0.01353, allocations: 47.36 kB / 277.6 MB, free: 12.6 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.01365, allocations: 0.5079 MB / 278.1 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.23e-05/0.01372, allocations: 23.98 kB / 278.1 MB, free: 12.06 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.54e-05/0.01381, allocations: 117.1 kB / 278.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001497/0.01396, allocations: 156 kB / 278.4 MB, free: 11.72 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.01396, allocations: 0 / 278.4 MB, free: 11.72 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00022/0.01418, allocations: 185.2 kB / 278.5 MB, free: 11.53 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.0142, allocations: 8 kB / 278.5 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.0142, allocations: 0 / 278.5 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.01422, allocations: 8.234 kB / 278.6 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.01433, allocations: 55.86 kB / 278.6 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.01434, allocations: 0 / 278.6 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001425/0.01448, allocations: 47.81 kB / 278.7 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.158e-05/0.0145, allocations: 15.98 kB / 278.7 MB, free: 11.4 MB / 266.7 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.0001097/0.01461, allocations: 172.5 kB / 278.8 MB, free: 11.22 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.98e-05/0.01465, allocations: 23.86 kB / 278.9 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002358/0.01489, allocations: 147.7 kB / 279 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.01489, allocations: 3.938 kB / 279 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.84e-06/0.01489, allocations: 7.938 kB / 279 MB, free: 11.03 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.0149, allocations: 0 / 279 MB, free: 11.03 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004789/0.01538, allocations: 0.5121 MB / 279.5 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.01538, allocations: 0 / 279.5 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/0.01548, allocations: 27.98 kB / 279.6 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-06/0.01549, allocations: 7.938 kB / 279.6 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.0155, allocations: 4 kB / 279.6 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.0155, allocations: 0 / 279.6 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.0155, allocations: 0 / 279.6 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002875/0.01579, allocations: 323.8 kB / 279.9 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.434e-05/0.01583, allocations: 27.78 kB / 279.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.931e-05/0.01587, allocations: 11.94 kB / 279.9 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001475/0.01601, allocations: 39.95 kB / 280 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001434/0.01616, allocations: 99.81 kB / 280.1 MB, free: 9.918 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.203e-05/0.01617, allocations: 4 kB / 280.1 MB, free: 9.914 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001447/0.01631, allocations: 225.1 kB / 280.3 MB, free: 9.691 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01631, allocations: 0 / 280.3 MB, free: 9.691 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002708/0.01658, allocations: 95.81 kB / 280.4 MB, free: 9.598 MB / 266.7 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.0001464/0.01673, allocations: 107.2 kB / 280.5 MB, free: 9.484 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002127/0.01694, allocations: 107.4 kB / 280.6 MB, free: 9.375 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.01695, allocations: 0 / 280.6 MB, free: 9.375 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.319e-05/0.01702, allocations: 51.61 kB / 280.6 MB, free: 9.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.01731, allocations: 40.98 kB / 280.7 MB, free: 9.281 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001077/0.01838, allocations: 0.6153 MB / 281.3 MB, free: 8.629 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.821e-05/0.01844, allocations: 84.31 kB / 281.4 MB, free: 8.527 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.794e-05/0.01853, allocations: 30.28 kB / 281.4 MB, free: 8.5 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.863e-05/0.0186, allocations: 28.5 kB / 281.4 MB, free: 8.473 MB / 266.7 MB Notification: Performance of SimCode: time 1.763e-06/0.0186, allocations: 0 / 281.4 MB, free: 8.473 MB / 266.7 MB Notification: Performance of Templates: time 0.007289/0.02589, allocations: 4.621 MB / 286.1 MB, free: 3.898 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1546225952915847]