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.00108/0.00108, allocations: 78.28 kB / 21.42 MB, free: 3.082 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.001105/0.001105, allocations: 153.8 kB / 24.8 MB, free: 9.293 MB / 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.085/1.085, allocations: 173.3 MB / 201.4 MB, free: 9.23 MB / 186.7 MB " [Timeout remaining time 179] 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.473e-06/1.473e-06, allocations: 0 / 268.4 MB, free: 6.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.374e-05/2.522e-05, allocations: 6.312 kB / 268.4 MB, free: 6.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003541/0.003566, allocations: 2.941 MB / 271.3 MB, free: 3.266 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001513/0.00508, allocations: 0.7088 MB / 272 MB, free: 2.551 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002227/0.005302, allocations: 7.938 kB / 272.1 MB, free: 2.543 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002053/0.005508, allocations: 67.42 kB / 272.1 MB, free: 2.477 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002832/0.005791, allocations: 115 kB / 272.2 MB, free: 2.363 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003644/0.006155, allocations: 103.9 kB / 272.3 MB, free: 2.262 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004419/0.006597, allocations: 430 kB / 272.7 MB, free: 1.84 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00023/0.006827, allocations: 138.4 kB / 272.9 MB, free: 1.707 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002669/0.007094, allocations: 247.5 kB / 273.1 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002372/0.007331, allocations: 159.5 kB / 273.3 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.977e-05/0.007381, allocations: 44 kB / 273.3 MB, free: 1.266 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001319/0.007513, allocations: 55.92 kB / 273.4 MB, free: 1.211 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001279/0.007641, allocations: 111.6 kB / 273.5 MB, free: 1.102 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001105/0.007751, allocations: 139.7 kB / 273.6 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000426/0.008177, allocations: 302.9 kB / 273.9 MB, free: 0.668 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.008181, allocations: 0 / 273.9 MB, free: 0.668 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.008182, allocations: 4 kB / 273.9 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.00819, allocations: 0 / 273.9 MB, free: 0.6641 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.0009894/0.009179, allocations: 0.7998 MB / 274.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.00922, allocations: 8.031 kB / 274.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.102e-05/0.009311, allocations: 68.69 kB / 274.8 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002966/0.009608, allocations: 267.4 kB / 275.1 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.009626, allocations: 24.97 kB / 275.1 MB, free: 15.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.611e-05/0.009672, allocations: 36.38 kB / 275.1 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003065/0.009979, allocations: 299 kB / 275.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.009989, allocations: 8.172 kB / 275.4 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.068e-05/0.01001, allocations: 8.375 kB / 275.4 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.01002, allocations: 11.94 kB / 275.4 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001321/0.01015, allocations: 88.45 kB / 275.5 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/0.01139, allocations: 1.166 MB / 276.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000205/0.0116, allocations: 123 kB / 276.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.01171, allocations: 67.64 kB / 276.9 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.068e-05/0.01174, allocations: 4 kB / 276.9 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.415e-05/0.01176, allocations: 41.38 kB / 276.9 MB, free: 13.47 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 2.144e-06/0.01176, allocations: 4 kB / 276.9 MB, free: 13.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002307/0.01199, allocations: 125.8 kB / 277.1 MB, free: 13.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.397e-05/0.01203, allocations: 67.27 kB / 277.1 MB, free: 13.26 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001974/0.01222, allocations: 312.1 kB / 277.4 MB, free: 12.94 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.01224, allocations: 25.7 kB / 277.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.01236, allocations: 263 kB / 277.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.563e-05/0.0124, allocations: 63.47 kB / 277.8 MB, free: 12.58 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.959e-05/0.01247, allocations: 47.34 kB / 277.8 MB, free: 12.53 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.01263, allocations: 0.5118 MB / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.511e-05/0.01267, allocations: 19.97 kB / 278.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.576e-05/0.01276, allocations: 105.1 kB / 278.4 MB, free: 11.84 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001324/0.01289, allocations: 147.7 kB / 278.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.01289, allocations: 0 / 278.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002145/0.01311, allocations: 169.3 kB / 278.8 MB, free: 11.49 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.01313, allocations: 11.98 kB / 278.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.01314, allocations: 0 / 278.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.01315, allocations: 4 kB / 278.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.01326, allocations: 47.86 kB / 278.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.01326, allocations: 7.938 kB / 278.8 MB, free: 11.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001452/0.01341, allocations: 51.8 kB / 278.9 MB, free: 11.37 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.169e-05/0.01343, allocations: 12.12 kB / 278.9 MB, free: 11.36 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 (energy.local_reset,pulseSeries.on2,pulseSeries.on1) * 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.0001267/0.01356, allocations: 172.5 kB / 279.1 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.07e-05/0.0136, allocations: 31.8 kB / 279.1 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002236/0.01382, allocations: 127.8 kB / 279.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.01382, allocations: 4 kB / 279.2 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.267e-06/0.01383, allocations: 3.938 kB / 279.2 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.01383, allocations: 3.984 kB / 279.2 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004749/0.01431, allocations: 461 kB / 279.7 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.01431, allocations: 4 kB / 279.7 MB, free: 10.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.319e-05/0.0144, allocations: 27.98 kB / 279.7 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.01441, allocations: 8.031 kB / 279.7 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.01442, allocations: 7.938 kB / 279.7 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.01443, allocations: 7.922 kB / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.01443, allocations: 4 kB / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00025/0.01468, allocations: 291.9 kB / 280 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.663e-05/0.01472, allocations: 35.73 kB / 280.1 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.442e-05/0.01474, allocations: 7.938 kB / 280.1 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.01488, allocations: 40 kB / 280.1 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.925e-05/0.01497, allocations: 43.92 kB / 280.1 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.149e-05/0.01498, allocations: 4 kB / 280.1 MB, free: 10.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001161/0.0151, allocations: 213.1 kB / 280.4 MB, free: 9.809 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0151, allocations: 0 / 280.4 MB, free: 9.809 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002591/0.01536, allocations: 91.78 kB / 280.4 MB, free: 9.719 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.0001378/0.0155, allocations: 111.2 kB / 280.6 MB, free: 9.602 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001633/0.01566, allocations: 94.39 kB / 280.6 MB, free: 9.508 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.01566, allocations: 0 / 280.6 MB, free: 9.508 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.173e-05/0.01572, allocations: 51.59 kB / 280.7 MB, free: 9.453 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.016, allocations: 40.41 kB / 280.7 MB, free: 9.414 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009508/0.01696, allocations: 0.6154 MB / 281.3 MB, free: 8.762 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.696e-05/0.01701, allocations: 92.3 kB / 281.4 MB, free: 8.652 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.173e-05/0.01709, allocations: 26.3 kB / 281.5 MB, free: 8.629 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001408/0.01723, allocations: 122.2 kB / 281.6 MB, free: 8.508 MB / 266.7 MB Notification: Performance of SimCode: time 8.42e-07/0.01724, allocations: 0 / 281.6 MB, free: 8.508 MB / 266.7 MB Notification: Performance of Templates: time 0.007083/0.02432, allocations: 4.665 MB / 286.2 MB, free: 3.906 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1393811646848917]