Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001535/0.001535, allocations: 114.8 kB / 18.46 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001504/0.001504, allocations: 208 kB / 19.41 MB, free: 3.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002069/0.002069, allocations: 59.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2457, allocations: 50.54 MB / 409.9 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004287/0.2501, allocations: 2.988 MB / 412.9 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001475/0.2516, allocations: 0.744 MB / 413.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002462/0.2518, allocations: 7.938 kB / 413.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002429/0.2521, allocations: 55.44 kB / 413.7 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003366/0.2524, allocations: 107.1 kB / 413.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003544/0.2528, allocations: 107.8 kB / 413.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005009/0.2533, allocations: 414.3 kB / 414.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003278/0.2537, allocations: 209.7 kB / 414.5 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002095/0.2539, allocations: 159.4 kB / 414.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000297/0.2542, allocations: 187.2 kB / 414.9 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.156e-05/0.2543, allocations: 40 kB / 414.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001481/0.2544, allocations: 59.98 kB / 415 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001587/0.2546, allocations: 99.72 kB / 415.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002185/0.2548, allocations: 211 kB / 415.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005524/0.2554, allocations: 0.494 MB / 415.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2554, allocations: 0 / 415.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2554, allocations: 3.938 kB / 415.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.246e-05/0.2554, allocations: 0 / 415.8 MB, free: 11.7 MB / 334.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.001639/0.2571, allocations: 0.8025 MB / 416.6 MB, free: 10.85 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.2571, allocations: 8.031 kB / 416.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.495e-05/0.2572, allocations: 44.7 kB / 416.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005028/0.2577, allocations: 350.7 kB / 417 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.396e-05/0.2578, allocations: 25.03 kB / 417 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.459e-05/0.2578, allocations: 28.38 kB / 417 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005823/0.2584, allocations: 342.2 kB / 417.4 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.2584, allocations: 4 kB / 417.4 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.174e-05/0.2585, allocations: 12 kB / 417.4 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.2585, allocations: 8 kB / 417.4 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004325/0.2589, allocations: 242.4 kB / 417.6 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.2608, allocations: 1.296 MB / 418.9 MB, free: 8.379 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003727/0.2611, allocations: 170.6 kB / 419.1 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002659/0.2614, allocations: 132.7 kB / 419.2 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.874e-05/0.2615, allocations: 11.98 kB / 419.2 MB, free: 8.059 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.2615, allocations: 34.5 kB / 419.3 MB, free: 8.016 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.513e-06/0.2615, allocations: 0 / 419.3 MB, free: 8.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004879/0.262, allocations: 229.7 kB / 419.5 MB, free: 7.785 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/0.2621, allocations: 55.41 kB / 419.5 MB, free: 7.719 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003724/0.2624, allocations: 315 kB / 419.8 MB, free: 7.402 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.2625, allocations: 25.7 kB / 419.9 MB, free: 7.371 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/0.2626, allocations: 232.2 kB / 420.1 MB, free: 7.141 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.606e-05/0.2627, allocations: 51.59 kB / 420.1 MB, free: 7.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.381e-05/0.2628, allocations: 49.66 kB / 420.2 MB, free: 7.035 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.2629, allocations: 338.8 kB / 420.5 MB, free: 6.695 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.263, allocations: 63.97 kB / 420.6 MB, free: 6.633 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001806/0.2632, allocations: 147.5 kB / 420.7 MB, free: 6.461 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002324/0.2635, allocations: 166.6 kB / 420.9 MB, free: 6.273 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2635, allocations: 0 / 420.9 MB, free: 6.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004156/0.2639, allocations: 237.2 kB / 421.1 MB, free: 6.035 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.2639, allocations: 8 kB / 421.1 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2639, allocations: 0 / 421.1 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.264, allocations: 4.25 kB / 421.1 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001922/0.2642, allocations: 55.91 kB / 421.2 MB, free: 5.969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.2642, allocations: 4 kB / 421.2 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003689/0.2646, allocations: 71.64 kB / 421.3 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.955e-05/0.2646, allocations: 12 kB / 421.3 MB, free: 5.883 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.000151/0.2648, allocations: 149.8 kB / 421.4 MB, free: 5.727 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.915e-05/0.2648, allocations: 35.75 kB / 421.5 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004093/0.2652, allocations: 207.1 kB / 421.7 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.2653, allocations: 0 / 421.7 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2653, allocations: 0 / 421.7 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.875e-05/0.2654, allocations: 105 kB / 421.8 MB, free: 5.367 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.583e-05/0.2654, allocations: 4 kB / 421.8 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004/0.2658, allocations: 55.92 kB / 421.8 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.266, allocations: 75.81 kB / 421.9 MB, free: 5.234 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006649/0.2667, allocations: 300.7 kB / 422.2 MB, free: 4.934 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005463/0.2672, allocations: 458.5 kB / 422.6 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001577/0.2674, allocations: 91.91 kB / 422.7 MB, free: 4.379 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002474/0.2676, allocations: 230 kB / 422.9 MB, free: 4.152 MB / 334.1 MB Notification: Performance of Backend: time 5.71e-07/0.2676, allocations: 0 / 422.9 MB, free: 4.152 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006028/0.2683, allocations: 196.9 kB / 423.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of SimCode: time 0.001286/0.2696, allocations: 1.107 MB / 424.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of Templates: time 0.009716/0.2793, allocations: 5.3 MB / 429.5 MB, free: 13.54 MB / 350.1 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/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_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches