Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 113 kB / 19.04 MB, free: 3.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 225.6 MB / 250.8 MB, free: 13.38 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 51.91 kB / 368.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.3045, allocations: 52.14 MB / 420.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004544/0.309, allocations: 3.006 MB / 423.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.3105, allocations: 0.7206 MB / 424.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001824/0.3106, allocations: 12 kB / 424.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002404/0.3109, allocations: 59.38 kB / 424.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002774/0.3112, allocations: 111.1 kB / 424.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003592/0.3115, allocations: 99.88 kB / 424.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004965/0.312, allocations: 426.2 kB / 425.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002981/0.3123, allocations: 141.8 kB / 425.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001817/0.3125, allocations: 163.4 kB / 425.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002779/0.3128, allocations: 191.2 kB / 425.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.751e-05/0.3128, allocations: 40 kB / 425.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001322/0.313, allocations: 55.98 kB / 425.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001634/0.3131, allocations: 107.7 kB / 426 MB, free: 9.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002158/0.3134, allocations: 199 kB / 426.1 MB, free: 9.785 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006407/0.314, allocations: 0.5032 MB / 426.7 MB, free: 9.285 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.314, allocations: 0 / 426.7 MB, free: 9.285 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.314, allocations: 4 kB / 426.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.314, allocations: 0 / 426.7 MB, free: 9.281 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.001792/0.3158, allocations: 0.7909 MB / 427.4 MB, free: 8.441 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.3158, allocations: 15.83 kB / 427.5 MB, free: 8.426 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.685e-05/0.3159, allocations: 44.66 kB / 427.5 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00051/0.3164, allocations: 350.8 kB / 427.8 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.3165, allocations: 28.97 kB / 427.9 MB, free: 7.977 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6e-05/0.3165, allocations: 28.38 kB / 427.9 MB, free: 7.949 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006013/0.3171, allocations: 350.2 kB / 428.2 MB, free: 7.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.3171, allocations: 3.938 kB / 428.2 MB, free: 7.586 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.439e-05/0.3172, allocations: 15.98 kB / 428.3 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.3172, allocations: 8 kB / 428.3 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004408/0.3176, allocations: 238.5 kB / 428.5 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001969/0.3196, allocations: 1.296 MB / 429.8 MB, free: 5.949 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003941/0.32, allocations: 166.1 kB / 430 MB, free: 5.781 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002656/0.3203, allocations: 120.7 kB / 430.1 MB, free: 5.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.955e-05/0.3203, allocations: 4 kB / 430.1 MB, free: 5.656 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.3203, allocations: 42.5 kB / 430.1 MB, free: 5.605 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.373e-06/0.3203, allocations: 0 / 430.1 MB, free: 5.605 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004863/0.3208, allocations: 221.7 kB / 430.3 MB, free: 5.383 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/0.3209, allocations: 59.39 kB / 430.4 MB, free: 5.312 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003758/0.3212, allocations: 319 kB / 430.7 MB, free: 4.996 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.792e-05/0.3213, allocations: 29.7 kB / 430.7 MB, free: 4.961 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/0.3214, allocations: 212.3 kB / 430.9 MB, free: 4.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.694e-05/0.3215, allocations: 63.53 kB / 431 MB, free: 4.688 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.927e-05/0.3216, allocations: 41.7 kB / 431.1 MB, free: 4.641 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.3217, allocations: 334.8 kB / 431.4 MB, free: 4.305 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001413/0.3219, allocations: 75.95 kB / 431.5 MB, free: 4.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001868/0.3221, allocations: 135.6 kB / 431.6 MB, free: 4.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002413/0.3223, allocations: 170.4 kB / 431.8 MB, free: 3.879 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3223, allocations: 0 / 431.8 MB, free: 3.879 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004003/0.3227, allocations: 245.1 kB / 432 MB, free: 3.633 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.3227, allocations: 8 kB / 432 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3227, allocations: 0 / 432 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/0.3228, allocations: 4 kB / 432 MB, free: 3.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001858/0.3229, allocations: 52.16 kB / 432.1 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.3229, allocations: 4 kB / 432.1 MB, free: 3.566 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003752/0.3233, allocations: 71.7 kB / 432.1 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.637e-05/0.3234, allocations: 16 kB / 432.1 MB, free: 3.48 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.0001643/0.3235, allocations: 150.2 kB / 432.3 MB, free: 3.324 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.798e-05/0.3236, allocations: 31.8 kB / 432.3 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004286/0.324, allocations: 207.7 kB / 432.5 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.324, allocations: 0 / 432.5 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.324, allocations: 0 / 432.5 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.324, allocations: 3.984 kB / 432.5 MB, free: 3.082 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008702/0.3249, allocations: 0.6242 MB / 433.2 MB, free: 2.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3249, allocations: 0 / 433.2 MB, free: 2.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.3251, allocations: 35.91 kB / 433.2 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.3251, allocations: 3.969 kB / 433.2 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.46e-05/0.3251, allocations: 12 kB / 433.2 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.3251, allocations: 3.938 kB / 433.2 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3251, allocations: 0 / 433.2 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005741/0.3257, allocations: 386.8 kB / 433.6 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.3258, allocations: 112.9 kB / 433.7 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.43e-05/0.3258, allocations: 4 kB / 433.7 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003859/0.3262, allocations: 59.98 kB / 433.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001888/0.3264, allocations: 71.88 kB / 433.8 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.875e-05/0.3264, allocations: 8 kB / 433.8 MB, free: 1.68 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000286/0.3267, allocations: 233.9 kB / 434.1 MB, free: 1.449 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3267, allocations: 0 / 434.1 MB, free: 1.449 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003752/0.3271, allocations: 83.84 kB / 434.1 MB, free: 1.367 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.0002001/0.3273, allocations: 111.2 kB / 434.3 MB, free: 1.246 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003962/0.3277, allocations: 171.8 kB / 434.4 MB, free: 1.078 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3277, allocations: 4 kB / 434.4 MB, free: 1.074 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001846/0.3278, allocations: 99.88 kB / 434.5 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004438/0.3283, allocations: 60.62 kB / 434.6 MB, free: 0.918 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001487/0.3298, allocations: 0.727 MB / 435.3 MB, free: 164 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004552/0.3302, allocations: 0.7868 MB / 436.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001328/0.3304, allocations: 38.22 kB / 436.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.288e-05/0.3305, allocations: 27.44 kB / 436.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of SimCode: time 8.91e-07/0.3305, allocations: 0 / 436.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of Templates: time 0.009422/0.3399, allocations: 4.618 MB / 440.8 MB, free: 10.7 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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_4.0.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.040067935362458]