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.001422/0.001422, allocations: 80.66 kB / 20.95 MB, free: 3.457 MB / 18.57 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.001404/0.001404, allocations: 149.1 kB / 24.26 MB, free: 160 kB / 18.57 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.459/1.459, allocations: 173.4 MB / 200.8 MB, free: 9.312 MB / 186.7 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 1.633e-06/1.633e-06, allocations: 0 / 267.3 MB, free: 6.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.604e-05/2.767e-05, allocations: 6.25 kB / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004845/0.004873, allocations: 2.785 MB / 270.1 MB, free: 3.945 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.006263, allocations: 0.6972 MB / 270.8 MB, free: 3.242 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.006412, allocations: 7.938 kB / 270.8 MB, free: 3.234 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002287/0.006641, allocations: 63.38 kB / 270.9 MB, free: 3.172 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003166/0.006958, allocations: 119 kB / 271 MB, free: 3.055 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003446/0.007302, allocations: 111.8 kB / 271.1 MB, free: 2.945 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005114/0.007814, allocations: 434 kB / 271.5 MB, free: 2.52 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003007/0.008114, allocations: 134.4 kB / 271.6 MB, free: 2.387 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003074/0.008422, allocations: 243.5 kB / 271.9 MB, free: 2.148 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002533/0.008675, allocations: 131.6 kB / 272 MB, free: 2.02 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.057e-05/0.008746, allocations: 40 kB / 272 MB, free: 1.98 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000143/0.008889, allocations: 59.92 kB / 272.1 MB, free: 1.922 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001744/0.009063, allocations: 111.6 kB / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001859/0.009249, allocations: 143.6 kB / 272.3 MB, free: 1.672 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006654/0.009914, allocations: 0.4984 MB / 272.8 MB, free: 1.172 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.009917, allocations: 0 / 272.8 MB, free: 1.172 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.009918, allocations: 0 / 272.8 MB, free: 1.172 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.009924, allocations: 0 / 272.8 MB, free: 1.172 MB / 250.7 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.001793/0.01172, allocations: 0.7234 MB / 273.6 MB, free: 424 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.01175, allocations: 8.031 kB / 273.6 MB, free: 416 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001621/0.01192, allocations: 64.7 kB / 273.6 MB, free: 352 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005546/0.01247, allocations: 296.4 kB / 273.9 MB, free: 28 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.996e-05/0.0125, allocations: 29.03 kB / 274 MB, free: 0 / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.137e-05/0.01259, allocations: 28.42 kB / 274 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007362/0.01333, allocations: 401.8 kB / 274.4 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.01334, allocations: 192 / 274.4 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.066e-05/0.01338, allocations: 16.38 kB / 274.4 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.01339, allocations: 7.938 kB / 274.4 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004979/0.01389, allocations: 242.4 kB / 274.6 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002127/0.01602, allocations: 1.111 MB / 275.7 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004371/0.01645, allocations: 158.6 kB / 275.9 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003199/0.01677, allocations: 120.8 kB / 276 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.786e-05/0.01681, allocations: 4 kB / 276 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.322e-05/0.01685, allocations: 30.56 kB / 276.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.253e-06/0.01685, allocations: 0 / 276.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0005807/0.01743, allocations: 243.5 kB / 276.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.099e-05/0.01748, allocations: 55.41 kB / 276.3 MB, free: 13.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004461/0.01792, allocations: 293.9 kB / 276.6 MB, free: 13.18 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.963e-05/0.01796, allocations: 37.7 kB / 276.7 MB, free: 13.14 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002039/0.01817, allocations: 216.2 kB / 276.9 MB, free: 12.93 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.122e-05/0.01824, allocations: 63.47 kB / 276.9 MB, free: 12.86 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.01834, allocations: 45.7 kB / 277 MB, free: 12.81 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004517/0.0188, allocations: 330.8 kB / 277.3 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001538/0.01895, allocations: 71.97 kB / 277.4 MB, free: 12.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002134/0.01916, allocations: 139.6 kB / 277.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002854/0.01945, allocations: 166.6 kB / 277.7 MB, free: 12.06 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.01945, allocations: 4 kB / 277.7 MB, free: 12.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004895/0.01994, allocations: 241.2 kB / 277.9 MB, free: 11.81 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.01996, allocations: 4 kB / 277.9 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.01997, allocations: 8.25 kB / 277.9 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.763e-05/0.02, allocations: 7.938 kB / 277.9 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00021/0.02021, allocations: 51.84 kB / 278 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/0.02022, allocations: 4 kB / 278 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000427/0.02065, allocations: 67.77 kB / 278.1 MB, free: 11.67 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.218e-05/0.02068, allocations: 8 kB / 278.1 MB, free: 11.66 MB / 266.7 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.000198/0.02088, allocations: 157.8 kB / 278.2 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.472e-05/0.02095, allocations: 23.86 kB / 278.2 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004675/0.02142, allocations: 203.7 kB / 278.4 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.02143, allocations: 3.938 kB / 278.4 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.02143, allocations: 0 / 278.4 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.02143, allocations: 0 / 278.4 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008862/0.02232, allocations: 0.5101 MB / 279 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.02232, allocations: 0 / 279 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.0225, allocations: 31.86 kB / 279 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.311e-05/0.02251, allocations: 4 kB / 279 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.314e-05/0.02254, allocations: 12.02 kB / 279 MB, free: 10.67 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.02254, allocations: 4 kB / 279 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.02254, allocations: 0 / 279 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006134/0.02315, allocations: 376.6 kB / 279.4 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.265e-05/0.02323, allocations: 39.7 kB / 279.4 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.469e-05/0.02327, allocations: 4 kB / 279.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000435/0.02371, allocations: 59.97 kB / 279.5 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002211/0.02393, allocations: 71.88 kB / 279.5 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.659e-05/0.02395, allocations: 12 kB / 279.6 MB, free: 10.09 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000282/0.02424, allocations: 217.2 kB / 279.8 MB, free: 9.879 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02424, allocations: 0 / 279.8 MB, free: 9.879 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004386/0.02468, allocations: 91.73 kB / 279.9 MB, free: 9.789 MB / 266.7 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.0002088/0.02488, allocations: 102.9 kB / 280 MB, free: 9.684 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004115/0.0253, allocations: 180.1 kB / 280.1 MB, free: 9.508 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.0253, allocations: 4.188 kB / 280.1 MB, free: 9.504 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002072/0.0255, allocations: 99.83 kB / 280.2 MB, free: 9.406 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004419/0.02595, allocations: 54.84 kB / 280.3 MB, free: 9.355 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.02751, allocations: 0.6734 MB / 281 MB, free: 8.648 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002056/0.02772, allocations: 168.8 kB / 281.1 MB, free: 8.465 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000133/0.02785, allocations: 34.23 kB / 281.2 MB, free: 8.43 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.02795, allocations: 36.48 kB / 281.2 MB, free: 8.395 MB / 266.7 MB Notification: Performance of SimCode: time 5.51e-07/0.02796, allocations: 0 / 281.2 MB, free: 8.395 MB / 266.7 MB Notification: Performance of Templates: time 0.01028/0.03823, allocations: 4.329 MB / 285.5 MB, free: 4.109 MB / 266.7 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: 4.964695896953344]