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.001864/0.001864, allocations: 95.86 kB / 20.96 MB, free: 3.461 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.001764/0.001764, allocations: 145.1 kB / 24.26 MB, free: 168 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 1.706/1.706, allocations: 173.3 MB / 200.8 MB, free: 9.332 MB / 186.7 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.893e-06/1.893e-06, allocations: 0 / 267.3 MB, free: 6.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.819e-05/4.008e-05, allocations: 5.828 kB / 267.3 MB, free: 6.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.008726/0.008766, allocations: 2.942 MB / 270.2 MB, free: 3.805 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002676/0.01144, allocations: 0.701 MB / 270.9 MB, free: 3.098 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002755/0.01172, allocations: 7.938 kB / 271 MB, free: 3.09 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003737/0.01209, allocations: 63.42 kB / 271 MB, free: 3.027 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005638/0.01265, allocations: 122.9 kB / 271.1 MB, free: 2.906 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005702/0.01322, allocations: 107.8 kB / 271.2 MB, free: 2.801 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008675/0.01409, allocations: 422.1 kB / 271.7 MB, free: 2.387 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004622/0.01455, allocations: 138.3 kB / 271.8 MB, free: 2.254 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005403/0.01509, allocations: 243.5 kB / 272 MB, free: 2.016 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005034/0.0156, allocations: 155.6 kB / 272.2 MB, free: 1.863 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001158/0.01571, allocations: 40 kB / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002283/0.01594, allocations: 63.92 kB / 272.3 MB, free: 1.762 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002863/0.01623, allocations: 111.6 kB / 272.4 MB, free: 1.652 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003115/0.01654, allocations: 143.6 kB / 272.5 MB, free: 1.512 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001169/0.01771, allocations: 0.5023 MB / 273 MB, free: 1.008 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.01771, allocations: 0 / 273 MB, free: 1.008 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.01771, allocations: 0 / 273 MB, free: 1.008 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.01772, allocations: 0 / 273 MB, free: 1.008 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.002723/0.02045, allocations: 0.8113 MB / 273.8 MB, free: 160 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/0.0205, allocations: 8.031 kB / 273.8 MB, free: 152 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00022/0.02072, allocations: 72.69 kB / 273.9 MB, free: 80 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008647/0.02158, allocations: 295.3 kB / 274.2 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.705e-05/0.02163, allocations: 25.03 kB / 274.2 MB, free: 15.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.703e-05/0.02173, allocations: 28.38 kB / 274.3 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.02287, allocations: 398.3 kB / 274.6 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.02288, allocations: 4.188 kB / 274.7 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.24e-05/0.02295, allocations: 12.38 kB / 274.7 MB, free: 15.28 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.624e-05/0.02297, allocations: 11.94 kB / 274.7 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007872/0.02376, allocations: 190.5 kB / 274.9 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003924/0.02768, allocations: 1.374 MB / 276.2 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006551/0.02834, allocations: 147.1 kB / 276.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004437/0.02878, allocations: 95.66 kB / 276.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.357e-05/0.02884, allocations: 4 kB / 276.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.384e-05/0.0289, allocations: 41.39 kB / 276.5 MB, free: 13.32 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 2.405e-06/0.0289, allocations: 0 / 276.5 MB, free: 13.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0008138/0.02972, allocations: 193.6 kB / 276.7 MB, free: 13.13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.029e-05/0.02979, allocations: 55.41 kB / 276.8 MB, free: 13.06 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007525/0.03054, allocations: 376.3 kB / 277.1 MB, free: 12.68 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.571e-05/0.03059, allocations: 33.7 kB / 277.2 MB, free: 12.64 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003452/0.03093, allocations: 271 kB / 277.4 MB, free: 12.37 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.03106, allocations: 67.47 kB / 277.5 MB, free: 12.3 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001812/0.03124, allocations: 55.36 kB / 277.5 MB, free: 12.24 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004543/0.0317, allocations: 0.5196 MB / 278.1 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002237/0.03192, allocations: 43.98 kB / 278.1 MB, free: 11.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000406/0.03233, allocations: 149.1 kB / 278.3 MB, free: 11.48 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005404/0.03287, allocations: 199.7 kB / 278.4 MB, free: 11.25 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.03287, allocations: 0 / 278.4 MB, free: 11.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007756/0.03365, allocations: 225.2 kB / 278.7 MB, free: 11.02 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.04e-05/0.03368, allocations: 4 kB / 278.7 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.676e-05/0.03369, allocations: 12.23 kB / 278.7 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.885e-05/0.03372, allocations: 7.938 kB / 278.7 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000365/0.03409, allocations: 39.92 kB / 278.7 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.369e-05/0.0341, allocations: 4 kB / 278.7 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005025/0.0346, allocations: 51.8 kB / 278.8 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.703e-05/0.03465, allocations: 8 kB / 278.8 MB, free: 10.9 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.0003463/0.035, allocations: 192.5 kB / 279 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.03513, allocations: 31.86 kB / 279 MB, free: 10.67 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007285/0.03586, allocations: 179.2 kB / 279.2 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.486e-05/0.03587, allocations: 3.938 kB / 279.2 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.03587, allocations: 0 / 279.2 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.407e-06/0.03588, allocations: 7.938 kB / 279.2 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001596/0.03748, allocations: 0.5948 MB / 279.8 MB, free: 9.832 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.03748, allocations: 0 / 279.8 MB, free: 9.832 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000315/0.0378, allocations: 31.86 kB / 279.8 MB, free: 9.801 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-06/0.0378, allocations: 4 kB / 279.8 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.02e-05/0.03783, allocations: 4 kB / 279.8 MB, free: 9.793 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.366e-06/0.03784, allocations: 4 kB / 279.8 MB, free: 9.789 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.03784, allocations: 4.031 kB / 279.8 MB, free: 9.785 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009431/0.03879, allocations: 371.8 kB / 280.2 MB, free: 9.398 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001396/0.03893, allocations: 47.66 kB / 280.3 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.878e-05/0.03899, allocations: 3.984 kB / 280.3 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005391/0.03953, allocations: 35.97 kB / 280.3 MB, free: 9.312 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004144/0.03995, allocations: 99.81 kB / 280.4 MB, free: 9.215 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.698e-05/0.03999, allocations: 8 kB / 280.4 MB, free: 9.207 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004412/0.04043, allocations: 265.1 kB / 280.7 MB, free: 8.949 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.04043, allocations: 0 / 280.7 MB, free: 8.949 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006717/0.0411, allocations: 87.78 kB / 280.7 MB, free: 8.863 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.0002094/0.04131, allocations: 103.2 kB / 280.8 MB, free: 8.754 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005499/0.04186, allocations: 150.2 kB / 281 MB, free: 8.605 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.04186, allocations: 0 / 281 MB, free: 8.605 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000236/0.0421, allocations: 79 kB / 281.1 MB, free: 8.527 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006393/0.04274, allocations: 56.34 kB / 281.1 MB, free: 8.473 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001961/0.0447, allocations: 0.631 MB / 281.8 MB, free: 7.805 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/0.04497, allocations: 172.8 kB / 281.9 MB, free: 7.617 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001834/0.04515, allocations: 30.28 kB / 281.9 MB, free: 7.586 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/0.04529, allocations: 24.5 kB / 282 MB, free: 7.559 MB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.04529, allocations: 0 / 282 MB, free: 7.559 MB / 266.7 MB Notification: Performance of Templates: time 0.01127/0.05656, allocations: 4.345 MB / 286.3 MB, free: 3.258 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","/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.244128496968187]