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.001877/0.001877, allocations: 105.5 kB / 20.43 MB, free: 1.473 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.002131/0.002131, allocations: 188.3 kB / 23.72 MB, free: 4.711 MB / 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.52/1.52, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.001809/0.001809, allocations: 51.92 kB / 370.9 MB, free: 9.375 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2837, allocations: 52.17 MB / 423.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.005378/0.2891, allocations: 3.022 MB / 426.1 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001636/0.2908, allocations: 0.7206 MB / 426.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001861/0.2909, allocations: 7.938 kB / 426.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002555/0.2912, allocations: 59.44 kB / 426.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002984/0.2915, allocations: 111.1 kB / 427 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003723/0.2919, allocations: 103.8 kB / 427.1 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000509/0.2924, allocations: 430.1 kB / 427.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003411/0.2927, allocations: 146.4 kB / 427.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000199/0.2929, allocations: 163.4 kB / 427.8 MB, free: 9.965 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003001/0.2932, allocations: 183.2 kB / 428 MB, free: 9.785 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.678e-05/0.2933, allocations: 40 kB / 428.1 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001526/0.2934, allocations: 55.94 kB / 428.1 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001953/0.2936, allocations: 111.6 kB / 428.2 MB, free: 9.582 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002446/0.2939, allocations: 215 kB / 428.4 MB, free: 9.371 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000714/0.2946, allocations: 0.4915 MB / 428.9 MB, free: 8.883 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.2946, allocations: 4 kB / 428.9 MB, free: 8.879 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2946, allocations: 0 / 428.9 MB, free: 8.879 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.2946, allocations: 0 / 428.9 MB, free: 8.879 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.001992/0.2966, allocations: 0.7195 MB / 429.6 MB, free: 8.125 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/0.2967, allocations: 11.97 kB / 429.7 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/0.2968, allocations: 52.59 kB / 429.7 MB, free: 8.062 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006924/0.2975, allocations: 284.9 kB / 430 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.657e-05/0.2975, allocations: 25.03 kB / 430 MB, free: 7.738 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.273e-05/0.2976, allocations: 32.38 kB / 430 MB, free: 7.707 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007275/0.2983, allocations: 354.2 kB / 430.4 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.2983, allocations: 0 / 430.4 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.165e-05/0.2984, allocations: 12 kB / 430.4 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.2984, allocations: 8 kB / 430.4 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005083/0.2989, allocations: 242.4 kB / 430.6 MB, free: 7.094 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002331/0.3012, allocations: 1.242 MB / 431.9 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004388/0.3017, allocations: 170.4 kB / 432.1 MB, free: 5.598 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002821/0.302, allocations: 116.7 kB / 432.2 MB, free: 5.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.679e-05/0.302, allocations: 4 kB / 432.2 MB, free: 5.477 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.302, allocations: 38.55 kB / 432.2 MB, free: 5.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.774e-06/0.302, allocations: 0 / 432.2 MB, free: 5.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005682/0.3026, allocations: 225.4 kB / 432.4 MB, free: 5.203 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.3027, allocations: 55.41 kB / 432.5 MB, free: 5.137 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000439/0.3031, allocations: 324.4 kB / 432.8 MB, free: 4.812 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.285e-05/0.3031, allocations: 33.7 kB / 432.8 MB, free: 4.773 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001938/0.3033, allocations: 208.4 kB / 433 MB, free: 4.562 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.65e-05/0.3034, allocations: 63.47 kB / 433.1 MB, free: 4.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.218e-05/0.3035, allocations: 41.72 kB / 433.1 MB, free: 4.453 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.3037, allocations: 338.8 kB / 433.5 MB, free: 4.113 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.3038, allocations: 71.97 kB / 433.5 MB, free: 4.043 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/0.304, allocations: 143.6 kB / 433.7 MB, free: 3.875 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002824/0.3043, allocations: 159.7 kB / 433.8 MB, free: 3.691 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.708e-06/0.3043, allocations: 0 / 433.8 MB, free: 3.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000586/0.3049, allocations: 259.9 kB / 434.1 MB, free: 3.434 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/0.3049, allocations: 4 kB / 434.1 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/0.3049, allocations: 4 kB / 434.1 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.258e-05/0.305, allocations: 7.938 kB / 434.1 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002085/0.3052, allocations: 39.98 kB / 434.1 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.648e-05/0.3052, allocations: 11.92 kB / 434.2 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004315/0.3056, allocations: 68 kB / 434.2 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.153e-05/0.3057, allocations: 8 kB / 434.2 MB, free: 3.293 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.000209/0.3059, allocations: 149.8 kB / 434.4 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.661e-05/0.3059, allocations: 31.8 kB / 434.4 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004541/0.3064, allocations: 199.7 kB / 434.6 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.3064, allocations: 0 / 434.6 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3064, allocations: 7.938 kB / 434.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.3064, allocations: 0 / 434.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009398/0.3073, allocations: 0.6009 MB / 435.2 MB, free: 2.242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3073, allocations: 0 / 435.2 MB, free: 2.242 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002042/0.3075, allocations: 31.92 kB / 435.2 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.3076, allocations: 4 kB / 435.2 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.087e-05/0.3076, allocations: 4 kB / 435.2 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.3076, allocations: 0 / 435.2 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.3076, allocations: 4 kB / 435.3 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006474/0.3082, allocations: 388.2 kB / 435.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.544e-05/0.3083, allocations: 31.78 kB / 435.7 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.769e-05/0.3083, allocations: 4 kB / 435.7 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004411/0.3088, allocations: 51.92 kB / 435.7 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002593/0.309, allocations: 79.92 kB / 435.8 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.525e-05/0.3091, allocations: 16 kB / 435.8 MB, free: 1.625 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003594/0.3094, allocations: 242.9 kB / 436 MB, free: 1.387 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3094, allocations: 0 / 436 MB, free: 1.387 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005922/0.31, allocations: 83.78 kB / 436.1 MB, free: 1.305 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.0002399/0.3103, allocations: 103.2 kB / 436.2 MB, free: 1.191 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000466/0.3107, allocations: 176.1 kB / 436.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3107, allocations: 0 / 436.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001922/0.3109, allocations: 99.88 kB / 436.5 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004648/0.3114, allocations: 52.84 kB / 436.6 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001796/0.3132, allocations: 0.7286 MB / 437.3 MB, free: 108 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004863/0.3137, allocations: 0.779 MB / 438.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001473/0.3138, allocations: 34.28 kB / 438.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.812e-05/0.3139, allocations: 23.44 kB / 438.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of SimCode: time 1.323e-06/0.3139, allocations: 0 / 438.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of Templates: time 0.009867/0.3238, allocations: 4.685 MB / 442.8 MB, free: 10.61 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.234100608155131]