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.001075/0.001075, allocations: 112.1 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001366/0.001367, allocations: 210.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 247.6 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 55.91 kB / 359.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2306, allocations: 50.54 MB / 409.9 MB, free: 1.797 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004097/0.2347, allocations: 2.977 MB / 412.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001485/0.2362, allocations: 0.7439 MB / 413.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001718/0.2364, allocations: 12 kB / 413.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002391/0.2366, allocations: 59.38 kB / 413.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002754/0.2369, allocations: 107.1 kB / 413.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003713/0.2373, allocations: 107.8 kB / 413.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004464/0.2378, allocations: 414.3 kB / 414.3 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003219/0.2381, allocations: 205.8 kB / 414.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001474/0.2383, allocations: 159.4 kB / 414.7 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002426/0.2385, allocations: 183.2 kB / 414.9 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.58e-05/0.2386, allocations: 40 kB / 414.9 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001173/0.2387, allocations: 59.94 kB / 415 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001384/0.2388, allocations: 107.7 kB / 415.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.239, allocations: 207 kB / 415.3 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000438/0.2395, allocations: 495.6 kB / 415.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.2395, allocations: 4 kB / 415.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2395, allocations: 0 / 415.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.2395, allocations: 0 / 415.8 MB, free: 11.93 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.001602/0.2411, allocations: 0.7912 MB / 416.5 MB, free: 11.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.2411, allocations: 8.031 kB / 416.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.108e-05/0.2412, allocations: 40.47 kB / 416.6 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005036/0.2418, allocations: 354.5 kB / 416.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.785e-05/0.2418, allocations: 21.03 kB / 417 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.967e-05/0.2419, allocations: 32.38 kB / 417 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005366/0.2424, allocations: 346.2 kB / 417.3 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.2424, allocations: 0 / 417.3 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.335e-05/0.2425, allocations: 16 kB / 417.3 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.2425, allocations: 8 kB / 417.4 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003975/0.2429, allocations: 242.4 kB / 417.6 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001779/0.2447, allocations: 1.284 MB / 418.9 MB, free: 8.633 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004502/0.2451, allocations: 182.4 kB / 419.1 MB, free: 8.445 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002894/0.2454, allocations: 128.7 kB / 419.2 MB, free: 8.316 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.429e-05/0.2455, allocations: 7.984 kB / 419.2 MB, free: 8.309 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/0.2455, allocations: 38.56 kB / 419.2 MB, free: 8.262 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.442e-06/0.2455, allocations: 0 / 419.2 MB, free: 8.262 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005231/0.2461, allocations: 229.2 kB / 419.4 MB, free: 8.031 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.2461, allocations: 55.41 kB / 419.5 MB, free: 7.965 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003734/0.2465, allocations: 319.2 kB / 419.8 MB, free: 7.645 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.628e-05/0.2465, allocations: 29.7 kB / 419.8 MB, free: 7.609 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001673/0.2467, allocations: 212 kB / 420.1 MB, free: 7.398 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.986e-05/0.2468, allocations: 55.2 kB / 420.1 MB, free: 7.344 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.848e-05/0.2468, allocations: 49.7 kB / 420.2 MB, free: 7.289 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.247, allocations: 334.8 kB / 420.5 MB, free: 6.953 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.2472, allocations: 79.95 kB / 420.6 MB, free: 6.875 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.2473, allocations: 135.6 kB / 420.7 MB, free: 6.715 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002316/0.2476, allocations: 167.6 kB / 420.9 MB, free: 6.523 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.2476, allocations: 4 kB / 420.9 MB, free: 6.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003747/0.248, allocations: 241 kB / 421.1 MB, free: 6.277 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.248, allocations: 14.95 kB / 421.1 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.248, allocations: 0 / 421.1 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.248, allocations: 4 kB / 421.1 MB, free: 6.262 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001802/0.2482, allocations: 43.98 kB / 421.2 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.458e-05/0.2483, allocations: 12.17 kB / 421.2 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003551/0.2486, allocations: 63.77 kB / 421.2 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.992e-05/0.2487, allocations: 8 kB / 421.2 MB, free: 6.137 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.0001918/0.2489, allocations: 161.7 kB / 421.4 MB, free: 5.969 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.053e-05/0.2489, allocations: 27.66 kB / 421.4 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000386/0.2493, allocations: 191.8 kB / 421.6 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.383e-06/0.2493, allocations: 11.98 kB / 421.6 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2493, allocations: 0 / 421.6 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.832e-05/0.2494, allocations: 112.6 kB / 421.7 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.226e-05/0.2495, allocations: 8 kB / 421.7 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000399/0.2499, allocations: 51.92 kB / 421.8 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001647/0.25, allocations: 67.89 kB / 421.9 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006245/0.2507, allocations: 307.5 kB / 422.2 MB, free: 5.18 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000488/0.2512, allocations: 446.4 kB / 422.6 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001432/0.2513, allocations: 92.03 kB / 422.7 MB, free: 4.637 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002597/0.2516, allocations: 233.9 kB / 422.9 MB, free: 4.406 MB / 334.1 MB Notification: Performance of Backend: time 4.41e-07/0.2516, allocations: 0 / 422.9 MB, free: 4.406 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005481/0.2522, allocations: 202.2 kB / 423.1 MB, free: 4.199 MB / 334.1 MB Notification: Performance of SimCode: time 0.001232/0.2534, allocations: 1.107 MB / 424.2 MB, free: 3.039 MB / 334.1 MB Notification: Performance of Templates: time 0.00876/0.2622, allocations: 5.293 MB / 429.5 MB, free: 13.79 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