Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009037/0.000904, allocations: 183.7 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 225.7 MB / 243.2 MB, free: 10.23 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008348/0.0008349, allocations: 96.94 kB / 294.4 MB, free: 9.734 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002498/0.0002498, allocations: 8 kB / 354.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2447, allocations: 50.41 MB / 404.6 MB, free: 31.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.00271/0.2474, allocations: 2.529 MB / 407.1 MB, free: 28.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001098/0.2486, allocations: 0.8219 MB / 407.9 MB, free: 27.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001513/0.2487, allocations: 7.938 kB / 407.9 MB, free: 27.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001864/0.2489, allocations: 52.83 kB / 408 MB, free: 27.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002166/0.2492, allocations: 89.73 kB / 408.1 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002666/0.2494, allocations: 91.88 kB / 408.2 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003055/0.2497, allocations: 410.3 kB / 408.6 MB, free: 27.33 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002531/0.25, allocations: 180.5 kB / 408.7 MB, free: 27.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.2501, allocations: 123.5 kB / 408.9 MB, free: 27.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002126/0.2503, allocations: 165.7 kB / 409 MB, free: 26.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.45e-05/0.2504, allocations: 16 kB / 409 MB, free: 26.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.45e-05/0.2505, allocations: 27.98 kB / 409.1 MB, free: 26.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001166/0.2506, allocations: 83.59 kB / 409.1 MB, free: 26.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001405/0.2507, allocations: 196.8 kB / 409.3 MB, free: 26.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003436/0.2511, allocations: 467.8 kB / 409.8 MB, free: 26.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.2511, allocations: 0 / 409.8 MB, free: 26.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2511, allocations: 0 / 409.8 MB, free: 26.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.2511, allocations: 4 kB / 409.8 MB, free: 26.09 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.001285/0.2524, allocations: 0.772 MB / 410.6 MB, free: 25.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.2525, allocations: 19.91 kB / 410.6 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.443e-05/0.2526, allocations: 40.47 kB / 410.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003489/0.2529, allocations: 334.6 kB / 411 MB, free: 24.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/0.2529, allocations: 24.97 kB / 411 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.846e-05/0.253, allocations: 32.38 kB / 411 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004571/0.2535, allocations: 346.2 kB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.2535, allocations: 0 / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.035e-05/0.2535, allocations: 12 kB / 411.4 MB, free: 24.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.2535, allocations: 8 kB / 411.4 MB, free: 24.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000338/0.2539, allocations: 234.5 kB / 411.6 MB, free: 24.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001417/0.2553, allocations: 1.315 MB / 412.9 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003121/0.2556, allocations: 182.5 kB / 413.1 MB, free: 22.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002087/0.2558, allocations: 128.8 kB / 413.2 MB, free: 22.47 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.49e-05/0.2559, allocations: 3.984 kB / 413.2 MB, free: 22.46 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.013e-05/0.2559, allocations: 46.48 kB / 413.3 MB, free: 22.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.774e-06/0.2559, allocations: 0 / 413.3 MB, free: 22.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003887/0.2563, allocations: 226 kB / 413.5 MB, free: 22.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.894e-05/0.2563, allocations: 51.41 kB / 413.5 MB, free: 22.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002541/0.2566, allocations: 319 kB / 413.8 MB, free: 21.8 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.2566, allocations: 25.7 kB / 413.9 MB, free: 21.77 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.805e-05/0.2567, allocations: 212 kB / 414.1 MB, free: 21.56 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.311e-05/0.2567, allocations: 55.19 kB / 414.1 MB, free: 21.51 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.206e-05/0.2568, allocations: 4 kB / 414.1 MB, free: 21.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.643e-05/0.2568, allocations: 342.8 kB / 414.5 MB, free: 21.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.2569, allocations: 67.97 kB / 414.5 MB, free: 21.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/0.2571, allocations: 135.6 kB / 414.7 MB, free: 20.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001651/0.2572, allocations: 159.6 kB / 414.8 MB, free: 20.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2572, allocations: 4 kB / 414.8 MB, free: 20.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000286/0.2575, allocations: 244.9 kB / 415.1 MB, free: 20.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.2576, allocations: 8 kB / 415.1 MB, free: 20.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.2576, allocations: 0 / 415.1 MB, free: 20.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.2576, allocations: 4 kB / 415.1 MB, free: 20.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/0.2578, allocations: 47.91 kB / 415.1 MB, free: 20.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.433e-06/0.2578, allocations: 4 kB / 415.1 MB, free: 20.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003399/0.2581, allocations: 83.94 kB / 415.2 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.584e-05/0.2581, allocations: 23.98 kB / 415.2 MB, free: 20.33 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.0001124/0.2583, allocations: 153.7 kB / 415.4 MB, free: 20.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.377e-05/0.2583, allocations: 27.66 kB / 415.4 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003189/0.2586, allocations: 203.9 kB / 415.6 MB, free: 19.94 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.2587, allocations: 7.938 kB / 415.6 MB, free: 19.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.2587, allocations: 3.984 kB / 415.6 MB, free: 19.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.2587, allocations: 0 / 415.6 MB, free: 19.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005852/0.2593, allocations: 0.6355 MB / 416.3 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.2593, allocations: 0 / 416.3 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001397/0.2594, allocations: 31.92 kB / 416.3 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.175e-06/0.2594, allocations: 0 / 416.3 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.2595, allocations: 4 kB / 416.3 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.2595, allocations: 4 kB / 416.3 MB, free: 19.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2595, allocations: 3.984 kB / 416.3 MB, free: 19.19 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003633/0.2598, allocations: 371.9 kB / 416.7 MB, free: 18.8 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.227e-05/0.2599, allocations: 112.7 kB / 416.8 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.216e-05/0.2599, allocations: 8 kB / 416.8 MB, free: 18.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003654/0.2603, allocations: 83.91 kB / 416.9 MB, free: 18.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001775/0.2605, allocations: 71.88 kB / 416.9 MB, free: 18.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.474e-05/0.2605, allocations: 4 kB / 416.9 MB, free: 18.51 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001703/0.2607, allocations: 237.9 kB / 417.2 MB, free: 18.28 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2607, allocations: 4 kB / 417.2 MB, free: 18.28 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002927/0.261, allocations: 87.69 kB / 417.3 MB, free: 18.19 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.0001283/0.2611, allocations: 112.6 kB / 417.4 MB, free: 18.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002651/0.2614, allocations: 175.8 kB / 417.5 MB, free: 17.9 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2614, allocations: 0 / 417.5 MB, free: 17.9 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001374/0.2616, allocations: 107.9 kB / 417.6 MB, free: 17.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003941/0.262, allocations: 50.64 kB / 417.7 MB, free: 17.74 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/0.2631, allocations: 0.9298 MB / 418.6 MB, free: 16.78 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001865/0.2633, allocations: 0.7755 MB / 419.4 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001314/0.2635, allocations: 34.27 kB / 419.4 MB, free: 15.94 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.231e-05/0.2635, allocations: 31.38 kB / 419.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of SimCode: time 3.7e-07/0.2635, allocations: 0 / 419.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of Templates: time 0.005979/0.2695, allocations: 3.718 MB / 423.2 MB, free: 12.23 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches