Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00184/0.00184, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002367/0.002367, allocations: 218.4 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.569/1.569, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002245/0.002245, allocations: 55.86 kB / 378.2 MB, free: 2.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3059, allocations: 53.37 MB / 431.6 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004664/0.3106, allocations: 2.791 MB / 434.4 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.312, allocations: 0.7241 MB / 435.1 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002093/0.3122, allocations: 11.94 kB / 435.1 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002169/0.3124, allocations: 59.44 kB / 435.1 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000284/0.3127, allocations: 115.1 kB / 435.3 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003538/0.313, allocations: 103.8 kB / 435.4 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004633/0.3135, allocations: 418.3 kB / 435.8 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002835/0.3138, allocations: 130.4 kB / 435.9 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001764/0.314, allocations: 163.4 kB / 436.1 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002661/0.3142, allocations: 167.2 kB / 436.2 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.424e-05/0.3143, allocations: 40 kB / 436.3 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001357/0.3144, allocations: 59.98 kB / 436.3 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001688/0.3146, allocations: 107.6 kB / 436.4 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.3148, allocations: 167.3 kB / 436.6 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006525/0.3154, allocations: 0.4928 MB / 437.1 MB, free: 1.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3154, allocations: 0 / 437.1 MB, free: 1.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3154, allocations: 0 / 437.1 MB, free: 1.223 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.441e-05/0.3154, allocations: 0 / 437.1 MB, free: 1.223 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.001845/0.3173, allocations: 0.7311 MB / 437.8 MB, free: 468 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.3173, allocations: 12.03 kB / 437.8 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.312e-05/0.3174, allocations: 40.7 kB / 437.9 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005852/0.318, allocations: 284.9 kB / 438.1 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.929e-05/0.318, allocations: 25.03 kB / 438.2 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.64e-05/0.3181, allocations: 36.38 kB / 438.2 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006969/0.3188, allocations: 393.6 kB / 438.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.3188, allocations: 4 kB / 438.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.49e-05/0.3188, allocations: 12 kB / 438.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.469e-05/0.3189, allocations: 8 kB / 438.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004443/0.3193, allocations: 238.4 kB / 438.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002057/0.3214, allocations: 1.102 MB / 439.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004336/0.3218, allocations: 162.5 kB / 440.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003686/0.3222, allocations: 120.8 kB / 440.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.174e-05/0.3222, allocations: 4 kB / 440.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.103e-05/0.3223, allocations: 34.5 kB / 440.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 2.645e-06/0.3223, allocations: 4 kB / 440.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.000741/0.323, allocations: 223.5 kB / 440.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.023e-05/0.3231, allocations: 59.41 kB / 440.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004125/0.3235, allocations: 305.8 kB / 440.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.009e-05/0.3235, allocations: 29.64 kB / 440.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001767/0.3237, allocations: 216.3 kB / 441.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.967e-05/0.3238, allocations: 59.48 kB / 441.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.3239, allocations: 49.64 kB / 441.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002719/0.3241, allocations: 334.8 kB / 441.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.3243, allocations: 71.95 kB / 441.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.3245, allocations: 135.6 kB / 441.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004334/0.3249, allocations: 167.5 kB / 441.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.3249, allocations: 0 / 441.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004728/0.3254, allocations: 248 kB / 442.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.3254, allocations: 7.984 kB / 442.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3254, allocations: 4 kB / 442.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-05/0.3254, allocations: 4 kB / 442.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002012/0.3256, allocations: 47.92 kB / 442.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.3257, allocations: 0 / 442.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003806/0.326, allocations: 67.77 kB / 442.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.096e-05/0.3261, allocations: 16.06 kB / 442.3 MB, free: 11.76 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.0002028/0.3263, allocations: 157.7 kB / 442.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.573e-05/0.3263, allocations: 23.8 kB / 442.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004266/0.3268, allocations: 199.7 kB / 442.6 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.3268, allocations: 0 / 442.6 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.3268, allocations: 3.984 kB / 442.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.3268, allocations: 4 kB / 442.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.328, allocations: 0.5096 MB / 443.1 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.328, allocations: 0 / 443.1 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001579/0.3281, allocations: 36.02 kB / 443.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.3281, allocations: 0 / 443.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.995e-05/0.3281, allocations: 4 kB / 443.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.3281, allocations: 0 / 443.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3281, allocations: 0 / 443.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000637/0.3288, allocations: 380.5 kB / 443.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.3289, allocations: 35.81 kB / 443.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.212e-05/0.3289, allocations: 0 / 443.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004895/0.3294, allocations: 59.98 kB / 443.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002019/0.3296, allocations: 75.86 kB / 443.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/0.3296, allocations: 8 kB / 443.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002531/0.3299, allocations: 213.2 kB / 443.9 MB, free: 9.996 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3299, allocations: 4 kB / 443.9 MB, free: 9.992 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004036/0.3303, allocations: 87.78 kB / 444 MB, free: 9.906 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.0001936/0.3305, allocations: 111.1 kB / 444.1 MB, free: 9.789 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003964/0.3309, allocations: 183.7 kB / 444.3 MB, free: 9.609 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3309, allocations: 0 / 444.3 MB, free: 9.609 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000187/0.3311, allocations: 99.88 kB / 444.4 MB, free: 9.512 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004085/0.3315, allocations: 44.36 kB / 444.5 MB, free: 9.469 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002136/0.3336, allocations: 0.7205 MB / 445.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002341/0.3339, allocations: 168.8 kB / 445.3 MB, free: 8.535 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001897/0.3341, allocations: 34.28 kB / 445.4 MB, free: 8.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.3342, allocations: 23.42 kB / 445.4 MB, free: 8.477 MB / 350.1 MB Notification: Performance of SimCode: time 1.724e-06/0.3342, allocations: 4 kB / 445.4 MB, free: 8.473 MB / 350.1 MB Notification: Performance of Templates: time 0.01175/0.3459, allocations: 4.646 MB / 450.1 MB, free: 3.879 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.281745815649629]