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.001021/0.001021, allocations: 84 kB / 21.43 MB, free: 3.133 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.003924/0.003924, allocations: 153.2 kB / 24.69 MB, free: 9.434 MB / 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.8051/0.8051, allocations: 173.4 MB / 201.2 MB, free: 9.418 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 1.773e-06/1.773e-06, allocations: 0 / 319.7 MB, free: 5.867 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.382e-05/2.559e-05, allocations: 6.219 kB / 319.7 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.002762/0.002788, allocations: 2.77 MB / 322.4 MB, free: 3.07 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.003981, allocations: 0.6933 MB / 323.1 MB, free: 2.371 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001416/0.004123, allocations: 11.94 kB / 323.1 MB, free: 2.359 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001687/0.004292, allocations: 59.38 kB / 323.2 MB, free: 2.301 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002114/0.004503, allocations: 115 kB / 323.3 MB, free: 2.188 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002885/0.004792, allocations: 115.8 kB / 323.4 MB, free: 2.074 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003016/0.005093, allocations: 430 kB / 323.8 MB, free: 1.652 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002064/0.0053, allocations: 138.4 kB / 324 MB, free: 1.52 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001636/0.005463, allocations: 247.5 kB / 324.2 MB, free: 1.277 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001698/0.005633, allocations: 135.6 kB / 324.4 MB, free: 1.145 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.885e-05/0.005672, allocations: 40 kB / 324.4 MB, free: 1.105 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.128e-05/0.005763, allocations: 59.92 kB / 324.5 MB, free: 1.047 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.005878, allocations: 107.6 kB / 324.6 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.033e-05/0.005968, allocations: 143.7 kB / 324.7 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004038/0.006372, allocations: 0.5062 MB / 325.2 MB, free: 300 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.006375, allocations: 0 / 325.2 MB, free: 300 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.031e-06/0.006376, allocations: 0 / 325.2 MB, free: 300 kB / 282.7 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.006381, allocations: 0 / 325.2 MB, free: 300 kB / 282.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.000987/0.007368, allocations: 0.7266 MB / 325.9 MB, free: 15.53 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.007404, allocations: 8.031 kB / 325.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.393e-05/0.007468, allocations: 40.7 kB / 326 MB, free: 15.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003699/0.007838, allocations: 284.5 kB / 326.3 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.832e-05/0.007856, allocations: 21.03 kB / 326.3 MB, free: 15.16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.133e-05/0.007897, allocations: 32.38 kB / 326.3 MB, free: 15.13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003974/0.008295, allocations: 397.8 kB / 326.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.008306, allocations: 4.188 kB / 326.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.687e-05/0.008333, allocations: 16.38 kB / 326.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.008342, allocations: 11.94 kB / 326.7 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002803/0.008622, allocations: 238.4 kB / 327 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001068/0.00969, allocations: 1.103 MB / 328.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002678/0.009958, allocations: 162.5 kB / 328.2 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001819/0.01014, allocations: 112.8 kB / 328.3 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.869e-05/0.01017, allocations: 4 kB / 328.3 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.023e-05/0.01019, allocations: 34.56 kB / 328.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.072e-06/0.01019, allocations: 3.938 kB / 328.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003417/0.01053, allocations: 236.9 kB / 328.6 MB, free: 12.72 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.693e-05/0.01057, allocations: 55.41 kB / 328.7 MB, free: 12.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000236/0.0108, allocations: 305.8 kB / 329 MB, free: 12.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.01082, allocations: 29.7 kB / 329 MB, free: 12.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.311e-05/0.01091, allocations: 212.3 kB / 329.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.323e-05/0.01095, allocations: 59.48 kB / 329.3 MB, free: 12.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.425e-05/0.011, allocations: 45.7 kB / 329.3 MB, free: 11.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.1e-05/0.01108, allocations: 334.8 kB / 329.6 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.928e-05/0.01117, allocations: 71.95 kB / 329.7 MB, free: 11.58 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001106/0.01128, allocations: 132.3 kB / 329.8 MB, free: 11.42 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003986/0.01168, allocations: 174.3 kB / 330 MB, free: 11.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.01168, allocations: 0 / 330 MB, free: 11.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002455/0.01193, allocations: 233.2 kB / 330.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.01194, allocations: 8.25 kB / 330.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.01195, allocations: 4 kB / 330.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.01196, allocations: 7.938 kB / 330.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.01207, allocations: 47.91 kB / 330.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.01208, allocations: 7.938 kB / 330.3 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001786/0.01225, allocations: 67.77 kB / 330.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.864e-05/0.01227, allocations: 8 kB / 330.4 MB, free: 10.84 MB / 298.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.0001075/0.01238, allocations: 158.2 kB / 330.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.957e-05/0.01241, allocations: 31.78 kB / 330.6 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002408/0.01265, allocations: 195.7 kB / 330.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.01265, allocations: 3.938 kB / 330.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.01266, allocations: 0 / 330.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.01266, allocations: 3.984 kB / 330.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004516/0.01311, allocations: 0.5068 MB / 331.3 MB, free: 9.895 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.01311, allocations: 0 / 331.3 MB, free: 9.895 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.89e-05/0.0132, allocations: 35.91 kB / 331.3 MB, free: 9.859 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.0132, allocations: 4.031 kB / 331.3 MB, free: 9.855 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.01322, allocations: 4 kB / 331.3 MB, free: 9.852 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.01322, allocations: 7.938 kB / 331.3 MB, free: 9.844 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.01322, allocations: 0 / 331.3 MB, free: 9.844 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003176/0.01354, allocations: 364.6 kB / 331.7 MB, free: 9.469 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.457e-05/0.01357, allocations: 39.75 kB / 331.7 MB, free: 9.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.039e-05/0.01359, allocations: 3.938 kB / 331.7 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001874/0.01378, allocations: 59.98 kB / 331.8 MB, free: 9.367 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.01389, allocations: 75.86 kB / 331.8 MB, free: 9.293 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.0139, allocations: 8 kB / 331.9 MB, free: 9.285 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001409/0.01405, allocations: 217.2 kB / 332.1 MB, free: 9.074 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01405, allocations: 0 / 332.1 MB, free: 9.074 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002374/0.01428, allocations: 91.73 kB / 332.2 MB, free: 8.984 MB / 298.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.0001379/0.01442, allocations: 111.2 kB / 332.3 MB, free: 8.867 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002399/0.01466, allocations: 183.6 kB / 332.4 MB, free: 8.691 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.01466, allocations: 0 / 332.4 MB, free: 8.691 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001078/0.01477, allocations: 99.88 kB / 332.5 MB, free: 8.594 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002696/0.01504, allocations: 54.86 kB / 332.6 MB, free: 8.543 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008751/0.01591, allocations: 0.674 MB / 333.3 MB, free: 7.828 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001068/0.01602, allocations: 172.8 kB / 333.4 MB, free: 7.641 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.979e-05/0.01609, allocations: 24.5 kB / 333.5 MB, free: 7.617 MB / 298.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01609, allocations: 4 kB / 333.5 MB, free: 7.613 MB / 298.7 MB Notification: Performance of Templates: time 0.004499/0.02059, allocations: 4.296 MB / 337.8 MB, free: 3.328 MB / 298.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=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.939296361990273]