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.001671/0.001671, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001967/0.001967, allocations: 202.9 kB / 23.73 MB, free: 4.379 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.553/1.553, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001592/0.001592, allocations: 43.92 kB / 378.2 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3147, allocations: 53.36 MB / 431.6 MB, free: 6.574 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004776/0.3194, allocations: 2.801 MB / 434.4 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001704/0.3212, allocations: 0.7191 MB / 435.1 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000202/0.3214, allocations: 7.938 kB / 435.1 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002517/0.3216, allocations: 67.38 kB / 435.2 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002801/0.3219, allocations: 107.1 kB / 435.3 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003838/0.3223, allocations: 107.8 kB / 435.4 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004528/0.3227, allocations: 414.3 kB / 435.8 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000292/0.323, allocations: 146.4 kB / 435.9 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001791/0.3232, allocations: 163.4 kB / 436.1 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002685/0.3235, allocations: 179.2 kB / 436.2 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.729e-05/0.3235, allocations: 44 kB / 436.3 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001497/0.3237, allocations: 63.92 kB / 436.4 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001578/0.3238, allocations: 107.7 kB / 436.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000169/0.324, allocations: 171.2 kB / 436.6 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00061/0.3246, allocations: 0.4939 MB / 437.1 MB, free: 1.004 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.3246, allocations: 0 / 437.1 MB, free: 1.004 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.3246, allocations: 0 / 437.1 MB, free: 1.004 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.3246, allocations: 4 kB / 437.1 MB, free: 1 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.001598/0.3262, allocations: 0.7195 MB / 437.8 MB, free: 252 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.3263, allocations: 12.02 kB / 437.9 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.12e-05/0.3264, allocations: 40.7 kB / 437.9 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005448/0.3269, allocations: 289 kB / 438.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.369e-05/0.3269, allocations: 25.03 kB / 438.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.604e-05/0.327, allocations: 28.38 kB / 438.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000576/0.3276, allocations: 409.6 kB / 438.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.3276, allocations: 3.938 kB / 438.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.121e-05/0.3276, allocations: 12 kB / 438.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.3276, allocations: 8 kB / 438.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000413/0.328, allocations: 242.4 kB / 438.9 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001651/0.3297, allocations: 1.098 MB / 440 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003876/0.3301, allocations: 162.6 kB / 440.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002587/0.3303, allocations: 116.8 kB / 440.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.224e-05/0.3304, allocations: 0 / 440.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.3304, allocations: 50.42 kB / 440.3 MB, free: 13.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 9.02e-07/0.3304, allocations: 0 / 440.3 MB, free: 13.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.000482/0.3309, allocations: 229.6 kB / 440.5 MB, free: 13.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.805e-05/0.3309, allocations: 51.41 kB / 440.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003534/0.3313, allocations: 305.8 kB / 440.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.194e-05/0.3313, allocations: 33.7 kB / 440.9 MB, free: 13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001587/0.3315, allocations: 208.4 kB / 441.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.063e-05/0.3315, allocations: 59.47 kB / 441.2 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.592e-05/0.3316, allocations: 49.7 kB / 441.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.3317, allocations: 330.8 kB / 441.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001397/0.3319, allocations: 79.95 kB / 441.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.3321, allocations: 131.6 kB / 441.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002381/0.3323, allocations: 163.6 kB / 441.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-05/0.3323, allocations: 4 kB / 441.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003977/0.3327, allocations: 240 kB / 442.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.3327, allocations: 8 kB / 442.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.3327, allocations: 0 / 442.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.3328, allocations: 4 kB / 442.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001837/0.3329, allocations: 47.97 kB / 442.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.333, allocations: 7.938 kB / 442.2 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003716/0.3333, allocations: 68.02 kB / 442.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.032e-05/0.3334, allocations: 12 kB / 442.3 MB, free: 11.54 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.0001612/0.3335, allocations: 153.7 kB / 442.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.827e-05/0.3336, allocations: 27.8 kB / 442.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004/0.334, allocations: 197.6 kB / 442.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.334, allocations: 4 kB / 442.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.334, allocations: 0 / 442.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.334, allocations: 0 / 442.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007313/0.3347, allocations: 0.5145 MB / 443.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.3347, allocations: 4 kB / 443.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/0.3349, allocations: 31.92 kB / 443.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3349, allocations: 0 / 443.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.3349, allocations: 7.984 kB / 443.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.3349, allocations: 0 / 443.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.3349, allocations: 0 / 443.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005153/0.3354, allocations: 379.5 kB / 443.6 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.766e-05/0.3355, allocations: 31.81 kB / 443.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.018e-05/0.3355, allocations: 4.094 kB / 443.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003937/0.3359, allocations: 59.91 kB / 443.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/0.3361, allocations: 75.88 kB / 443.8 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.3361, allocations: 7.938 kB / 443.8 MB, free: 9.988 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002378/0.3363, allocations: 229.1 kB / 444 MB, free: 9.766 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3363, allocations: 0 / 444 MB, free: 9.766 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003593/0.3367, allocations: 83.78 kB / 444.1 MB, free: 9.684 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.0001403/0.3368, allocations: 107.2 kB / 444.2 MB, free: 9.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003427/0.3372, allocations: 171.7 kB / 444.4 MB, free: 9.402 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3372, allocations: 0 / 444.4 MB, free: 9.402 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001732/0.3374, allocations: 99.88 kB / 444.4 MB, free: 9.305 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003778/0.3377, allocations: 51.03 kB / 444.5 MB, free: 9.258 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001382/0.3391, allocations: 0.716 MB / 445.2 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001711/0.3393, allocations: 168.8 kB / 445.4 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001179/0.3394, allocations: 34.3 kB / 445.4 MB, free: 8.293 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.161e-05/0.3395, allocations: 27.44 kB / 445.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3395, allocations: 0 / 445.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of Templates: time 0.009259/0.3487, allocations: 4.715 MB / 450.2 MB, free: 3.602 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.258319249842316]