Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,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=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001414/0.001414, allocations: 200.6 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 229.5 MB / 247.7 MB, free: 6.348 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008701/0.0008701, allocations: 98.5 kB / 299.8 MB, free: 5.359 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003567, allocations: 4 kB / 360.6 MB, free: 8.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2007/0.2011, allocations: 51.42 MB / 412 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.002319/0.2035, allocations: 2.546 MB / 414.6 MB, free: 23.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.2045, allocations: 1.014 MB / 415.6 MB, free: 22.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.2047, allocations: 5.219 kB / 415.6 MB, free: 22.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001411/0.2048, allocations: 47.62 kB / 415.7 MB, free: 22.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001923/0.205, allocations: 95.23 kB / 415.8 MB, free: 22.13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002256/0.2052, allocations: 83.92 kB / 415.8 MB, free: 22.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002662/0.2055, allocations: 414.2 kB / 416.2 MB, free: 21.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002143/0.2057, allocations: 179.3 kB / 416.4 MB, free: 21.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.759e-05/0.2058, allocations: 127.4 kB / 416.5 MB, free: 21.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001585/0.206, allocations: 155.2 kB / 416.7 MB, free: 21.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.058e-05/0.206, allocations: 16 kB / 416.7 MB, free: 21.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.086e-05/0.2061, allocations: 35.92 kB / 416.7 MB, free: 21.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.644e-05/0.2062, allocations: 75.72 kB / 416.8 MB, free: 21.06 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001085/0.2064, allocations: 196.8 kB / 417 MB, free: 20.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000277/0.2066, allocations: 475.7 kB / 417.5 MB, free: 20.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.2066, allocations: 0 / 417.5 MB, free: 20.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2067, allocations: 0 / 417.5 MB, free: 20.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.2067, allocations: 0 / 417.5 MB, free: 20.4 MB / 298.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.00115/0.2078, allocations: 0.7642 MB / 418.2 MB, free: 19.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.443e-05/0.2079, allocations: 12.03 kB / 418.2 MB, free: 19.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.492e-05/0.2079, allocations: 40.47 kB / 418.3 MB, free: 19.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003029/0.2082, allocations: 342.6 kB / 418.6 MB, free: 19.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.137e-05/0.2083, allocations: 21.03 kB / 418.6 MB, free: 19.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.578e-05/0.2083, allocations: 36.38 kB / 418.7 MB, free: 19.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004591/0.2088, allocations: 342.2 kB / 419 MB, free: 18.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.2088, allocations: 4 kB / 419 MB, free: 18.76 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.917e-05/0.2088, allocations: 8 kB / 419 MB, free: 18.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.2088, allocations: 12 kB / 419 MB, free: 18.74 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000354/0.2092, allocations: 242.4 kB / 419.3 MB, free: 18.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001426/0.2106, allocations: 1.315 MB / 420.6 MB, free: 17.1 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003155/0.211, allocations: 178.5 kB / 420.8 MB, free: 16.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002094/0.2112, allocations: 132.7 kB / 420.9 MB, free: 16.78 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.558e-05/0.2112, allocations: 4 kB / 420.9 MB, free: 16.78 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.506e-05/0.2113, allocations: 30.56 kB / 420.9 MB, free: 16.74 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.152e-06/0.2113, allocations: 0 / 420.9 MB, free: 16.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003993/0.2117, allocations: 221.3 kB / 421.1 MB, free: 16.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.147e-05/0.2117, allocations: 55.41 kB / 421.2 MB, free: 16.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002612/0.212, allocations: 327.2 kB / 421.5 MB, free: 16.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.444e-05/0.212, allocations: 33.58 kB / 421.5 MB, free: 16.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.004e-05/0.2121, allocations: 208 kB / 421.7 MB, free: 15.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.356e-05/0.2121, allocations: 55.2 kB / 421.8 MB, free: 15.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.059e-05/0.2121, allocations: 4 kB / 421.8 MB, free: 15.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.682e-05/0.2122, allocations: 334.8 kB / 422.1 MB, free: 15.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.2123, allocations: 67.97 kB / 422.2 MB, free: 15.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001268/0.2124, allocations: 138.3 kB / 422.3 MB, free: 15.26 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001715/0.2126, allocations: 168.8 kB / 422.5 MB, free: 15.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.2126, allocations: 0 / 422.5 MB, free: 15.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000292/0.2129, allocations: 245.2 kB / 422.7 MB, free: 14.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.2129, allocations: 8 kB / 422.7 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.213, allocations: 4 kB / 422.8 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.213, allocations: 4 kB / 422.8 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.2131, allocations: 47.91 kB / 422.8 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.2132, allocations: 0 / 422.8 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003539/0.2135, allocations: 91.67 kB / 422.9 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.435e-05/0.2135, allocations: 12 kB / 422.9 MB, free: 14.66 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.on1,pulseSeries.on2,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.0001117/0.2137, allocations: 157.7 kB / 423.1 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.434e-05/0.2137, allocations: 27.66 kB / 423.1 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003324/0.2141, allocations: 216.1 kB / 423.3 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.2141, allocations: 4 kB / 423.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2141, allocations: 4 kB / 423.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.2141, allocations: 3.984 kB / 423.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005793/0.2147, allocations: 0.6277 MB / 423.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2147, allocations: 0 / 423.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001444/0.2148, allocations: 27.98 kB / 424 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.2148, allocations: 8.016 kB / 424 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.2149, allocations: 4 kB / 424 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2149, allocations: 0 / 424 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2149, allocations: 0 / 424 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003704/0.2153, allocations: 383.8 kB / 424.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.216e-05/0.2153, allocations: 108.8 kB / 424.5 MB, free: 12.99 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.887e-05/0.2154, allocations: 4 kB / 424.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003841/0.2158, allocations: 79.98 kB / 424.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001689/0.2159, allocations: 75.88 kB / 424.6 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.2159, allocations: 4 kB / 424.6 MB, free: 12.83 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001763/0.2161, allocations: 233.9 kB / 424.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2161, allocations: 0 / 424.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003025/0.2164, allocations: 91.69 kB / 424.9 MB, free: 12.51 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.0001215/0.2166, allocations: 107.2 kB / 425 MB, free: 12.39 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002726/0.2169, allocations: 179.8 kB / 425.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.2169, allocations: 3.938 kB / 425.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001402/0.217, allocations: 111.8 kB / 425.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/0.2174, allocations: 49.38 kB / 425.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.2186, allocations: 0.9239 MB / 426.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000159/0.2187, allocations: 0.7755 MB / 427.1 MB, free: 10.3 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001302/0.2189, allocations: 38.28 kB / 427.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.1e-05/0.2189, allocations: 19.44 kB / 427.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.219, allocations: 0 / 427.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of Templates: time 0.005934/0.2249, allocations: 3.706 MB / 430.8 MB, free: 6.566 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile (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) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches