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.001112/0.001112, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001222/0.001222, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001005/0.001005, allocations: 59.91 kB / 358.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3046, allocations: 50.55 MB / 409.2 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004387/0.3091, allocations: 2.979 MB / 412.2 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001546/0.3107, allocations: 0.7439 MB / 413 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002744/0.311, allocations: 8 kB / 413 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000256/0.3112, allocations: 63.36 kB / 413 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000357/0.3116, allocations: 103.1 kB / 413.1 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003814/0.312, allocations: 111.8 kB / 413.2 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004329/0.3124, allocations: 414.3 kB / 413.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000335/0.3128, allocations: 201.8 kB / 413.8 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001808/0.313, allocations: 163.4 kB / 414 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002537/0.3132, allocations: 179.2 kB / 414.2 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.953e-05/0.3133, allocations: 40 kB / 414.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001304/0.3135, allocations: 63.92 kB / 414.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001592/0.3136, allocations: 103.7 kB / 414.4 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002074/0.3138, allocations: 207 kB / 414.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006029/0.3145, allocations: 497.9 kB / 415.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.3145, allocations: 0 / 415.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.609e-06/0.3145, allocations: 7.984 kB / 415.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.3145, allocations: 3.938 kB / 415.1 MB, free: 11.79 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.001623/0.3161, allocations: 0.7986 MB / 415.9 MB, free: 10.94 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.3162, allocations: 8.031 kB / 415.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.27e-05/0.3163, allocations: 40.7 kB / 415.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005141/0.3168, allocations: 354.7 kB / 416.3 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/0.3168, allocations: 21.03 kB / 416.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.142e-05/0.3169, allocations: 32.36 kB / 416.3 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005774/0.3175, allocations: 354.2 kB / 416.7 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.3175, allocations: 0 / 416.7 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.41e-05/0.3175, allocations: 12 kB / 416.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.507e-06/0.3175, allocations: 8 kB / 416.7 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004067/0.318, allocations: 242.4 kB / 416.9 MB, free: 9.848 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001707/0.3197, allocations: 1.3 MB / 418.2 MB, free: 8.461 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003802/0.3201, allocations: 178.5 kB / 418.4 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002441/0.3203, allocations: 124.7 kB / 418.5 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.425e-05/0.3204, allocations: 4 kB / 418.5 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.321e-05/0.3204, allocations: 38.55 kB / 418.6 MB, free: 8.102 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.393e-06/0.3204, allocations: 0 / 418.6 MB, free: 8.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004395/0.3209, allocations: 229.6 kB / 418.8 MB, free: 7.871 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.345e-05/0.3209, allocations: 55.41 kB / 418.8 MB, free: 7.805 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003222/0.3212, allocations: 315 kB / 419.1 MB, free: 7.488 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.3213, allocations: 29.7 kB / 419.2 MB, free: 7.453 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.3214, allocations: 220.3 kB / 419.4 MB, free: 7.234 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.031e-05/0.3214, allocations: 59.52 kB / 419.4 MB, free: 7.176 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.227e-05/0.3215, allocations: 45.66 kB / 419.5 MB, free: 7.125 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.3216, allocations: 338.8 kB / 419.8 MB, free: 6.785 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.3218, allocations: 67.97 kB / 419.9 MB, free: 6.719 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001594/0.3219, allocations: 143.6 kB / 420 MB, free: 6.551 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002143/0.3222, allocations: 159.6 kB / 420.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3222, allocations: 0 / 420.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003616/0.3225, allocations: 249.1 kB / 420.4 MB, free: 6.117 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.3226, allocations: 4.25 kB / 420.4 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.3226, allocations: 11.94 kB / 420.4 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.3226, allocations: 0 / 420.4 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001788/0.3228, allocations: 43.97 kB / 420.5 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.3228, allocations: 7.938 kB / 420.5 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003632/0.3232, allocations: 67.72 kB / 420.6 MB, free: 5.984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.069e-05/0.3232, allocations: 15.98 kB / 420.6 MB, free: 5.969 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.0001316/0.3233, allocations: 157.7 kB / 420.7 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.513e-05/0.3234, allocations: 31.75 kB / 420.8 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003921/0.3238, allocations: 207 kB / 421 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.3238, allocations: 0 / 421 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3238, allocations: 0 / 421 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.3238, allocations: 7.938 kB / 421 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007438/0.3246, allocations: 0.6241 MB / 421.6 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3246, allocations: 32 / 421.6 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001494/0.3247, allocations: 35.92 kB / 421.6 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.3248, allocations: 0 / 421.6 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.022e-05/0.3248, allocations: 8 kB / 421.6 MB, free: 4.832 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3248, allocations: 0 / 421.6 MB, free: 4.832 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3248, allocations: 0 / 421.6 MB, free: 4.832 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004659/0.3253, allocations: 379.6 kB / 422 MB, free: 4.445 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.278e-05/0.3254, allocations: 109 kB / 422.1 MB, free: 4.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.353e-05/0.3254, allocations: 8 kB / 422.1 MB, free: 4.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003889/0.3258, allocations: 59.91 kB / 422.2 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001819/0.326, allocations: 79.81 kB / 422.3 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/0.326, allocations: 4 kB / 422.3 MB, free: 4.172 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000237/0.3263, allocations: 241.9 kB / 422.5 MB, free: 3.934 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.966e-06/0.3263, allocations: 0 / 422.5 MB, free: 3.934 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003603/0.3266, allocations: 91.72 kB / 422.6 MB, free: 3.844 MB / 334.1 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.0001545/0.3268, allocations: 107.2 kB / 422.7 MB, free: 3.727 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003555/0.3272, allocations: 183.8 kB / 422.9 MB, free: 3.547 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.3272, allocations: 0 / 422.9 MB, free: 3.547 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000172/0.3273, allocations: 111.8 kB / 423 MB, free: 3.441 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004188/0.3278, allocations: 48.86 kB / 423 MB, free: 3.391 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.3291, allocations: 0.7187 MB / 423.7 MB, free: 2.641 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003043/0.3294, allocations: 0.7714 MB / 424.5 MB, free: 1.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001367/0.3295, allocations: 38.27 kB / 424.6 MB, free: 1.801 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.898e-05/0.3296, allocations: 27.44 kB / 424.6 MB, free: 1.773 MB / 334.1 MB Notification: Performance of SimCode: time 4.1e-07/0.3296, allocations: 0 / 424.6 MB, free: 1.773 MB / 334.1 MB Notification: Performance of Templates: time 0.008218/0.3378, allocations: 4.528 MB / 429.1 MB, free: 13.29 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches