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.001748/0.001748, allocations: 118 kB / 18.46 MB, free: 4.562 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.002221/0.002221, allocations: 213.6 kB / 21.42 MB, free: 1.605 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.516/1.516, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.001503/0.001503, allocations: 47.92 kB / 374.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1078, allocations: 53.33 MB / 427.5 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004701/0.1125, allocations: 3.003 MB / 430.5 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.114, allocations: 0.74 MB / 431.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001787/0.1142, allocations: 11.94 kB / 431.2 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002313/0.1144, allocations: 59.42 kB / 431.3 MB, free: 468 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003114/0.1147, allocations: 115.1 kB / 431.4 MB, free: 352 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003531/0.1151, allocations: 107.8 kB / 431.5 MB, free: 244 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2059/0.3209, allocations: 407.5 kB / 431.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003282/0.3213, allocations: 146.9 kB / 432 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002298/0.3215, allocations: 161 kB / 432.2 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002445/0.3217, allocations: 187.3 kB / 432.4 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.529e-05/0.3218, allocations: 39.25 kB / 432.4 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001405/0.3219, allocations: 54.33 kB / 432.5 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001358/0.3221, allocations: 115.6 kB / 432.6 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001521/0.3222, allocations: 201 kB / 432.8 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005313/0.3228, allocations: 0.4932 MB / 433.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.3228, allocations: 0 / 433.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3228, allocations: 2.094 kB / 433.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.3228, allocations: 0 / 433.3 MB, free: 7.961 MB / 350.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.001561/0.3243, allocations: 0.8008 MB / 434.1 MB, free: 7.477 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.122e-05/0.3244, allocations: 9.219 kB / 434.1 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.364e-05/0.3244, allocations: 41.55 kB / 434.1 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004016/0.3248, allocations: 351.2 kB / 434.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/0.3249, allocations: 23.97 kB / 434.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.149e-05/0.3249, allocations: 32.06 kB / 434.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005158/0.3254, allocations: 348.6 kB / 434.9 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.3254, allocations: 5.25 kB / 434.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.329e-05/0.3255, allocations: 13.59 kB / 434.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.3255, allocations: 7.594 kB / 434.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000397/0.3259, allocations: 236 kB / 435.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001614/0.3275, allocations: 1.302 MB / 436.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003668/0.3279, allocations: 162.6 kB / 436.6 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000247/0.3281, allocations: 117.2 kB / 436.7 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.3281, allocations: 10.62 kB / 436.7 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.493e-05/0.3282, allocations: 32.86 kB / 436.7 MB, free: 6.453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.422e-06/0.3282, allocations: 0 / 436.7 MB, free: 6.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004644/0.3286, allocations: 234 kB / 437 MB, free: 6.402 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.78e-05/0.3287, allocations: 56.33 kB / 437 MB, free: 6.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003343/0.329, allocations: 316.2 kB / 437.3 MB, free: 6.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.121e-05/0.329, allocations: 31.48 kB / 437.4 MB, free: 6.199 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.3291, allocations: 212.6 kB / 437.6 MB, free: 6.062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.955e-05/0.3292, allocations: 54.69 kB / 437.6 MB, free: 6.027 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.103e-05/0.3292, allocations: 51.2 kB / 437.7 MB, free: 6.008 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.087e-05/0.3293, allocations: 339.5 kB / 438 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.3294, allocations: 68.83 kB / 438.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.3296, allocations: 136.6 kB / 438.2 MB, free: 5.621 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002028/0.3298, allocations: 165.5 kB / 438.4 MB, free: 5.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3298, allocations: 1.406 kB / 438.4 MB, free: 5.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003826/0.3302, allocations: 245.9 kB / 438.6 MB, free: 5.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.3302, allocations: 7.234 kB / 438.6 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3302, allocations: 2.312 kB / 438.6 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.3302, allocations: 2.891 kB / 438.6 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001896/0.3304, allocations: 48.34 kB / 438.7 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.3304, allocations: 7.125 kB / 438.7 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000425/0.3308, allocations: 74.08 kB / 438.7 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.034e-05/0.3309, allocations: 13.48 kB / 438.8 MB, free: 5.363 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.0001233/0.331, allocations: 149.8 kB / 438.9 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.948e-05/0.3311, allocations: 32.2 kB / 438.9 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000394/0.3315, allocations: 203.8 kB / 439.1 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.3315, allocations: 5.094 kB / 439.1 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3315, allocations: 1.406 kB / 439.1 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.3315, allocations: 1.312 kB / 439.1 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007533/0.3322, allocations: 0.6254 MB / 439.8 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.3322, allocations: 2.297 kB / 439.8 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001636/0.3324, allocations: 30.05 kB / 439.8 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.3324, allocations: 1.156 kB / 439.8 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.783e-05/0.3324, allocations: 7.781 kB / 439.8 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.3324, allocations: 1.797 kB / 439.8 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3324, allocations: 5.719 kB / 439.8 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004709/0.3329, allocations: 382.9 kB / 440.2 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.338e-05/0.3329, allocations: 108.1 kB / 440.3 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.499e-05/0.333, allocations: 5.75 kB / 440.3 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004505/0.3334, allocations: 59.28 kB / 440.4 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002169/0.3337, allocations: 72.67 kB / 440.4 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.062e-05/0.3337, allocations: 5.75 kB / 440.4 MB, free: 4.297 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003242/0.334, allocations: 232.4 kB / 440.7 MB, free: 4.172 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.334, allocations: 0 / 440.7 MB, free: 4.172 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004226/0.3344, allocations: 92.89 kB / 440.8 MB, free: 4.145 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.0001559/0.3346, allocations: 114.8 kB / 440.9 MB, free: 4.047 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003607/0.3349, allocations: 173.2 kB / 441 MB, free: 4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3349, allocations: 1.344 kB / 441 MB, free: 4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001709/0.3351, allocations: 98.33 kB / 441.1 MB, free: 3.977 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004247/0.3355, allocations: 64.06 kB / 441.2 MB, free: 3.945 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001356/0.3369, allocations: 0.7507 MB / 441.9 MB, free: 3.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002117/0.3371, allocations: 0.7775 MB / 442.7 MB, free: 2.797 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.3372, allocations: 30.17 kB / 442.8 MB, free: 2.785 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3372, allocations: 0 / 442.8 MB, free: 2.785 MB / 350.1 MB Notification: Performance of Templates: time 0.008521/0.3457, allocations: 4.347 MB / 447.1 MB, free: 2.395 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/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: 8.59030690000509]