Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001035/0.001035, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001123/0.001123, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 53.81 kB / 306.9 MB, free: 0.6445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1085, allocations: 50.54 MB / 357.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004261/0.1128, allocations: 2.978 MB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.1143, allocations: 0.7362 MB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001612/0.1144, allocations: 8 kB / 361.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002073/0.1147, allocations: 67.36 kB / 361.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002451/0.1149, allocations: 107.1 kB / 361.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003056/0.1152, allocations: 99.81 kB / 361.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000381/0.1156, allocations: 410.3 kB / 361.9 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003134/0.116, allocations: 213.8 kB / 362.1 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001478/0.1161, allocations: 159.4 kB / 362.2 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000252/0.1164, allocations: 183.2 kB / 362.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.544e-05/0.1164, allocations: 40 kB / 362.4 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001168/0.1166, allocations: 56 kB / 362.5 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001426/0.1167, allocations: 111.7 kB / 362.6 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002248/0.1169, allocations: 203 kB / 362.8 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004669/0.1174, allocations: 498.5 kB / 363.3 MB, free: 8.254 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.1174, allocations: 4 kB / 363.3 MB, free: 8.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1174, allocations: 0 / 363.3 MB, free: 8.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.1175, allocations: 0 / 363.3 MB, free: 8.25 MB / 302.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.001622/0.1191, allocations: 0.7912 MB / 364.1 MB, free: 7.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.1191, allocations: 8.031 kB / 364.1 MB, free: 7.402 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.857e-05/0.1192, allocations: 44.47 kB / 364.1 MB, free: 7.359 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004314/0.1197, allocations: 342.5 kB / 364.5 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.324e-05/0.1197, allocations: 25.03 kB / 364.5 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.286e-05/0.1197, allocations: 32.38 kB / 364.5 MB, free: 6.926 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005708/0.1203, allocations: 350.2 kB / 364.9 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.1203, allocations: 0 / 364.9 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.315e-05/0.1204, allocations: 12 kB / 364.9 MB, free: 6.562 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.958e-06/0.1204, allocations: 8 kB / 364.9 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004014/0.1208, allocations: 238.5 kB / 365.1 MB, free: 6.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001753/0.1226, allocations: 1.303 MB / 366.4 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003646/0.1229, allocations: 182.5 kB / 366.6 MB, free: 4.746 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002511/0.1232, allocations: 135.4 kB / 366.7 MB, free: 4.613 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.083e-05/0.1233, allocations: 0 / 366.7 MB, free: 4.613 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/0.1233, allocations: 34.56 kB / 366.8 MB, free: 4.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.102e-06/0.1233, allocations: 0 / 366.8 MB, free: 4.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004578/0.1238, allocations: 237.5 kB / 367 MB, free: 4.332 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/0.1238, allocations: 51.41 kB / 367 MB, free: 4.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003509/0.1242, allocations: 319 kB / 367.4 MB, free: 3.953 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.1242, allocations: 25.7 kB / 367.4 MB, free: 3.922 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.1243, allocations: 208 kB / 367.6 MB, free: 3.715 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.487e-05/0.1244, allocations: 55.2 kB / 367.6 MB, free: 3.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.677e-05/0.1245, allocations: 49.61 kB / 367.7 MB, free: 3.605 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.1246, allocations: 334.8 kB / 368 MB, free: 3.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.1248, allocations: 75.95 kB / 368.1 MB, free: 3.195 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001665/0.1249, allocations: 128.8 kB / 368.2 MB, free: 3.043 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002281/0.1252, allocations: 175 kB / 368.4 MB, free: 2.848 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1252, allocations: 0 / 368.4 MB, free: 2.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003791/0.1256, allocations: 249 kB / 368.6 MB, free: 2.598 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.1256, allocations: 8 kB / 368.6 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.1256, allocations: 3.938 kB / 368.6 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.1256, allocations: 4 kB / 368.6 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001789/0.1258, allocations: 43.92 kB / 368.7 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.1258, allocations: 7.922 kB / 368.7 MB, free: 2.531 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003955/0.1262, allocations: 75.86 kB / 368.8 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.725e-05/0.1263, allocations: 12 kB / 368.8 MB, free: 2.445 MB / 302.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.0001436/0.1264, allocations: 154.4 kB / 368.9 MB, free: 2.285 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.638e-05/0.1265, allocations: 27.66 kB / 369 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003826/0.1269, allocations: 195.8 kB / 369.2 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.1269, allocations: 4 kB / 369.2 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1269, allocations: 0 / 369.2 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.1269, allocations: 7.984 kB / 369.2 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007616/0.1277, allocations: 0.6419 MB / 369.8 MB, free: 1.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.1277, allocations: 0 / 369.8 MB, free: 1.348 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001544/0.1278, allocations: 27.98 kB / 369.8 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1278, allocations: 0 / 369.8 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.1279, allocations: 0 / 369.8 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.1279, allocations: 7.938 kB / 369.8 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1279, allocations: 0 / 369.8 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004803/0.1284, allocations: 383.9 kB / 370.2 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.494e-05/0.1285, allocations: 104.8 kB / 370.3 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.547e-05/0.1285, allocations: 4 kB / 370.3 MB, free: 0.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004094/0.1289, allocations: 55.98 kB / 370.4 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002145/0.1291, allocations: 75.88 kB / 370.5 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.1292, allocations: 8 kB / 370.5 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002852/0.1295, allocations: 237.9 kB / 370.7 MB, free: 432 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1295, allocations: 0 / 370.7 MB, free: 432 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003692/0.1298, allocations: 83.69 kB / 370.8 MB, free: 348 kB / 302.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.000149/0.13, allocations: 107.2 kB / 370.9 MB, free: 232 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003573/0.1304, allocations: 187.8 kB / 371.1 MB, free: 44 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1304, allocations: 4 kB / 371.1 MB, free: 40 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.154/0.2844, allocations: 104.6 kB / 371.2 MB, free: 20.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005974/0.285, allocations: 58.33 kB / 371.2 MB, free: 20.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001532/0.2865, allocations: 0.721 MB / 371.9 MB, free: 20.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002585/0.2868, allocations: 0.7801 MB / 372.7 MB, free: 19.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001746/0.287, allocations: 37.03 kB / 372.8 MB, free: 19.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.712e-05/0.2871, allocations: 27.69 kB / 372.8 MB, free: 19.31 MB / 302.1 MB Notification: Performance of SimCode: time 8.81e-07/0.2871, allocations: 0 / 372.8 MB, free: 19.31 MB / 302.1 MB Notification: Performance of Templates: time 0.01186/0.299, allocations: 4.492 MB / 377.3 MB, free: 19.07 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches