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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 110.5 kB / 17.75 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 187 kB / 18.68 MB, free: 4.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001099/0.001099, allocations: 59.89 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2372, allocations: 49.43 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003922/0.2412, allocations: 2.97 MB / 404.4 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00122/0.2424, allocations: 0.7167 MB / 405.1 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001561/0.2426, allocations: 8 kB / 405.1 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002043/0.2428, allocations: 59.38 kB / 405.1 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002474/0.2431, allocations: 111.1 kB / 405.3 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003192/0.2434, allocations: 103.8 kB / 405.4 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003861/0.2438, allocations: 414.3 kB / 405.8 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003019/0.2441, allocations: 213.7 kB / 406 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001504/0.2443, allocations: 163.4 kB / 406.1 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002373/0.2445, allocations: 187.2 kB / 406.3 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.83e-05/0.2446, allocations: 40 kB / 406.3 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001182/0.2447, allocations: 55.98 kB / 406.4 MB, free: 3.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001509/0.2449, allocations: 111.6 kB / 406.5 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001754/0.2451, allocations: 203 kB / 406.7 MB, free: 3.539 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004793/0.2456, allocations: 0.4955 MB / 407.2 MB, free: 3.047 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2456, allocations: 0 / 407.2 MB, free: 3.047 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2456, allocations: 0 / 407.2 MB, free: 3.047 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.898e-06/0.2456, allocations: 4 kB / 407.2 MB, free: 3.043 MB / 318.1 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.001604/0.2472, allocations: 0.7834 MB / 408 MB, free: 2.211 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.2472, allocations: 11.89 kB / 408 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.406e-05/0.2473, allocations: 44.41 kB / 408 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004745/0.2478, allocations: 350.6 kB / 408.4 MB, free: 1.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.53e-05/0.2479, allocations: 25.03 kB / 408.4 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.497e-05/0.2479, allocations: 28.38 kB / 408.4 MB, free: 1.727 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005601/0.2485, allocations: 346.2 kB / 408.8 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.2485, allocations: 0 / 408.8 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.56e-05/0.2485, allocations: 12 kB / 408.8 MB, free: 1.359 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.2486, allocations: 12 kB / 408.8 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004128/0.249, allocations: 238.5 kB / 409 MB, free: 1.117 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001754/0.2507, allocations: 1.303 MB / 410.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004114/0.2512, allocations: 178.5 kB / 410.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000252/0.2514, allocations: 128.7 kB / 410.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.128e-05/0.2515, allocations: 4 kB / 410.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.2515, allocations: 38.5 kB / 410.7 MB, free: 15.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.402e-06/0.2515, allocations: 0 / 410.7 MB, free: 15.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.000453/0.252, allocations: 221.6 kB / 410.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.501e-05/0.252, allocations: 63.33 kB / 411 MB, free: 15.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000334/0.2523, allocations: 318.9 kB / 411.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.274e-05/0.2524, allocations: 25.7 kB / 411.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.2525, allocations: 208 kB / 411.5 MB, free: 14.51 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.759e-05/0.2526, allocations: 63.19 kB / 411.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.158e-05/0.2526, allocations: 45.7 kB / 411.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.2528, allocations: 334.8 kB / 411.9 MB, free: 14.06 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.2529, allocations: 75.95 kB / 412 MB, free: 13.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/0.2531, allocations: 127.6 kB / 412.1 MB, free: 13.83 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002155/0.2533, allocations: 171.6 kB / 412.3 MB, free: 13.63 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.2533, allocations: 0 / 412.3 MB, free: 13.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003788/0.2537, allocations: 245 kB / 412.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.2537, allocations: 8 kB / 412.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.2538, allocations: 0 / 412.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.2538, allocations: 4 kB / 412.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001932/0.254, allocations: 56.09 kB / 412.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.254, allocations: 4 kB / 412.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004278/0.2544, allocations: 63.67 kB / 412.7 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.097e-05/0.2545, allocations: 19.98 kB / 412.7 MB, free: 13.23 MB / 334.1 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.0001515/0.2546, allocations: 149.7 kB / 412.8 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.147e-05/0.2547, allocations: 27.66 kB / 412.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003989/0.2551, allocations: 203.3 kB / 413.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.2551, allocations: 3.984 kB / 413.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2551, allocations: 0 / 413.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.799e-05/0.2552, allocations: 108.8 kB / 413.2 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.96e-05/0.2553, allocations: 4 kB / 413.2 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004404/0.2557, allocations: 55.92 kB / 413.2 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001689/0.2559, allocations: 75.83 kB / 413.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006685/0.2566, allocations: 296.6 kB / 413.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005148/0.2571, allocations: 452.9 kB / 414 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001466/0.2572, allocations: 95.84 kB / 414.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002265/0.2575, allocations: 233.9 kB / 414.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of Backend: time 4.01e-07/0.2575, allocations: 0 / 414.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005736/0.2581, allocations: 194.3 kB / 414.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of SimCode: time 0.001262/0.2593, allocations: 1.114 MB / 415.7 MB, free: 10.15 MB / 334.1 MB Notification: Performance of Templates: time 0.009198/0.2685, allocations: 5.348 MB / 421 MB, free: 4.852 MB / 334.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches