Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001797/0.001797, allocations: 108.7 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00209/0.00209, allocations: 207.9 kB / 19.79 MB, free: 2.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.526/1.526, allocations: 230.4 MB / 251.1 MB, free: 8.473 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 71.83 kB / 368.9 MB, free: 6.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/0.3001, allocations: 53.31 MB / 422.3 MB, free: 7.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004671/0.3047, allocations: 2.996 MB / 425.2 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.3061, allocations: 0.7557 MB / 426 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00017/0.3063, allocations: 11.88 kB / 426 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002206/0.3065, allocations: 55.44 kB / 426.1 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002619/0.3068, allocations: 111.1 kB / 426.2 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003548/0.3071, allocations: 103.8 kB / 426.3 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000476/0.3076, allocations: 414.3 kB / 426.7 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002882/0.3079, allocations: 145.8 kB / 426.8 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001762/0.3081, allocations: 163.4 kB / 427 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000289/0.3083, allocations: 187.2 kB / 427.2 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.231e-05/0.3084, allocations: 40 kB / 427.2 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000119/0.3085, allocations: 56 kB / 427.3 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001694/0.3087, allocations: 115.6 kB / 427.4 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001886/0.3089, allocations: 199.1 kB / 427.6 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000575/0.3095, allocations: 0.4937 MB / 428.1 MB, free: 2.027 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.3095, allocations: 4 kB / 428.1 MB, free: 2.023 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3095, allocations: 4 kB / 428.1 MB, free: 2.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.924e-06/0.3095, allocations: 0 / 428.1 MB, free: 2.02 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.001703/0.3112, allocations: 0.7987 MB / 428.9 MB, free: 1.172 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.3112, allocations: 12.03 kB / 428.9 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.791e-05/0.3113, allocations: 40.7 kB / 428.9 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005036/0.3118, allocations: 342.7 kB / 429.3 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.589e-05/0.3118, allocations: 21.03 kB / 429.3 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.74e-05/0.3119, allocations: 32.38 kB / 429.3 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005921/0.3125, allocations: 350.2 kB / 429.7 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.3125, allocations: 0 / 429.7 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.05e-05/0.3126, allocations: 20 kB / 429.7 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.3126, allocations: 8 kB / 429.7 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004335/0.313, allocations: 242.4 kB / 429.9 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001958/0.315, allocations: 1.296 MB / 431.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003857/0.3153, allocations: 162.5 kB / 431.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002606/0.3156, allocations: 128.7 kB / 431.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.328e-05/0.3156, allocations: 4 kB / 431.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.927e-05/0.3157, allocations: 30.56 kB / 431.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.192e-06/0.3157, allocations: 0 / 431.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004977/0.3162, allocations: 237.6 kB / 431.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.3162, allocations: 51.41 kB / 431.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004097/0.3166, allocations: 315 kB / 432.1 MB, free: 13.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.588e-05/0.3167, allocations: 33.7 kB / 432.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/0.3168, allocations: 220.3 kB / 432.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.857e-05/0.3169, allocations: 47.59 kB / 432.4 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.066e-05/0.317, allocations: 53.59 kB / 432.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.3172, allocations: 338.8 kB / 432.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001497/0.3173, allocations: 67.95 kB / 432.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001944/0.3175, allocations: 139.6 kB / 433 MB, free: 12.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003033/0.3178, allocations: 163.6 kB / 433.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.3178, allocations: 4 kB / 433.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004009/0.3182, allocations: 245.1 kB / 433.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.3182, allocations: 7.375 kB / 433.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.3182, allocations: 8 kB / 433.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.3182, allocations: 4 kB / 433.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001857/0.3184, allocations: 39.92 kB / 433.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.3184, allocations: 4 kB / 433.5 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003844/0.3188, allocations: 71.7 kB / 433.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.268e-05/0.3189, allocations: 12 kB / 433.5 MB, free: 12.23 MB / 350.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.0001962/0.3191, allocations: 153.8 kB / 433.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.275e-05/0.3191, allocations: 27.8 kB / 433.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004238/0.3195, allocations: 207.6 kB / 433.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.3195, allocations: 0 / 433.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.3196, allocations: 4 kB / 433.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.3196, allocations: 0 / 433.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008476/0.3204, allocations: 0.6307 MB / 434.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3204, allocations: 4.031 kB / 434.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001579/0.3206, allocations: 35.98 kB / 434.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.3206, allocations: 4 kB / 434.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.701e-05/0.3206, allocations: 0 / 434.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3206, allocations: 0 / 434.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3206, allocations: 0 / 434.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005188/0.3211, allocations: 380.5 kB / 435 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.1e-05/0.3212, allocations: 120.9 kB / 435.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.442e-05/0.3212, allocations: 4 kB / 435.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003801/0.3216, allocations: 51.92 kB / 435.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002012/0.3218, allocations: 79.88 kB / 435.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.3218, allocations: 4 kB / 435.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002661/0.3221, allocations: 241.9 kB / 435.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3221, allocations: 0 / 435.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003557/0.3225, allocations: 79.84 kB / 435.5 MB, free: 10.12 MB / 350.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.0001812/0.3226, allocations: 107.2 kB / 435.6 MB, free: 10 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000367/0.323, allocations: 175.8 kB / 435.8 MB, free: 9.828 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.323, allocations: 0 / 435.8 MB, free: 9.828 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001854/0.3232, allocations: 108.3 kB / 435.9 MB, free: 9.723 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004335/0.3236, allocations: 52.88 kB / 436 MB, free: 9.668 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.3251, allocations: 0.7248 MB / 436.7 MB, free: 8.918 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004209/0.3255, allocations: 0.7753 MB / 437.5 MB, free: 8.113 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001376/0.3256, allocations: 34.28 kB / 437.5 MB, free: 8.078 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.264e-05/0.3257, allocations: 27.44 kB / 437.5 MB, free: 8.051 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3257, allocations: 4 kB / 437.5 MB, free: 8.047 MB / 350.1 MB Notification: Performance of Templates: time 0.009198/0.3349, allocations: 4.567 MB / 442.1 MB, free: 3.523 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches