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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=144000,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=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 93.08 kB / 16.65 MB, free: 6.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 177.3 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002949/0.0002948, allocations: 11.94 kB / 301.4 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1079, allocations: 50.41 MB / 351.8 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004405/0.1124, allocations: 2.628 MB / 354.5 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001909/0.1143, allocations: 0.709 MB / 355.2 MB, free: 108 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000477/0.1148, allocations: 8 kB / 355.2 MB, free: 100 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003648/0.1152, allocations: 43.62 kB / 355.2 MB, free: 56 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005398/0.1158, allocations: 95.3 kB / 355.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000461/0.1163, allocations: 87.92 kB / 355.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005717/0.1168, allocations: 410.3 kB / 355.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003915/0.1172, allocations: 173.3 kB / 356 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002535/0.1175, allocations: 127.4 kB / 356.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003678/0.1179, allocations: 151.2 kB / 356.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.155e-05/0.118, allocations: 20 kB / 356.3 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002414/0.1182, allocations: 35.92 kB / 356.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001748/0.1184, allocations: 79.66 kB / 356.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002431/0.1187, allocations: 196.7 kB / 356.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007653/0.1194, allocations: 466.5 kB / 357 MB, free: 14.24 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1194, allocations: 0 / 357 MB, free: 14.24 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1195, allocations: 0 / 357 MB, free: 14.24 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.505e-05/0.1195, allocations: 0 / 357 MB, free: 14.24 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.001845/0.1213, allocations: 0.772 MB / 357.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.1214, allocations: 12.03 kB / 357.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.1215, allocations: 40.47 kB / 357.8 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004861/0.122, allocations: 346.5 kB / 358.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.837e-05/0.122, allocations: 25.03 kB / 358.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.882e-05/0.1221, allocations: 28.38 kB / 358.2 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006874/0.1228, allocations: 346.2 kB / 358.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.1228, allocations: 3.938 kB / 358.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.265e-05/0.1229, allocations: 12 kB / 358.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.1229, allocations: 12 kB / 358.6 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005415/0.1235, allocations: 242.5 kB / 358.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002012/0.1255, allocations: 1.311 MB / 360.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003866/0.1259, allocations: 185.9 kB / 360.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000266/0.1262, allocations: 136.7 kB / 360.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.434e-05/0.1262, allocations: 7.938 kB / 360.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.1263, allocations: 30.56 kB / 360.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.543e-06/0.1263, allocations: 0 / 360.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005192/0.1268, allocations: 221.6 kB / 360.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.1268, allocations: 67.28 kB / 360.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003774/0.1272, allocations: 319 kB / 361.1 MB, free: 9.941 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/0.1273, allocations: 29.7 kB / 361.1 MB, free: 9.906 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.1274, allocations: 208 kB / 361.3 MB, free: 9.699 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.875e-05/0.1275, allocations: 55.2 kB / 361.4 MB, free: 9.645 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.111e-05/0.1275, allocations: 29.7 kB / 361.4 MB, free: 9.609 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.1277, allocations: 334.8 kB / 361.7 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.1278, allocations: 67.97 kB / 361.8 MB, free: 9.207 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001635/0.128, allocations: 135.7 kB / 361.9 MB, free: 9.047 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002366/0.1282, allocations: 175.5 kB / 362.1 MB, free: 8.848 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.1282, allocations: 0 / 362.1 MB, free: 8.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003854/0.1286, allocations: 239.7 kB / 362.3 MB, free: 8.609 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.1287, allocations: 8.25 kB / 362.3 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.1287, allocations: 4 kB / 362.3 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.1287, allocations: 8 kB / 362.4 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001784/0.1289, allocations: 47.91 kB / 362.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.1289, allocations: 4 kB / 362.4 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004362/0.1293, allocations: 91.7 kB / 362.5 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.818e-05/0.1294, allocations: 8 kB / 362.5 MB, free: 8.441 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.0001731/0.1295, allocations: 153.8 kB / 362.7 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.966e-05/0.1296, allocations: 27.66 kB / 362.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004053/0.13, allocations: 203.7 kB / 362.9 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.13, allocations: 4 kB / 362.9 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.1301, allocations: 0 / 362.9 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.1301, allocations: 0 / 362.9 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008229/0.1309, allocations: 0.6239 MB / 363.5 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1309, allocations: 4 kB / 363.5 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001619/0.1311, allocations: 27.98 kB / 363.5 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.792e-06/0.1311, allocations: 4.031 kB / 363.5 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.856e-05/0.1311, allocations: 4 kB / 363.5 MB, free: 7.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.264e-06/0.1311, allocations: 7.984 kB / 363.6 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.1311, allocations: 0 / 363.6 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005517/0.1317, allocations: 383 kB / 363.9 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.1318, allocations: 104.8 kB / 364 MB, free: 6.801 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.406e-05/0.1319, allocations: 7.984 kB / 364 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004549/0.1323, allocations: 83.98 kB / 364.1 MB, free: 6.711 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002104/0.1325, allocations: 75.81 kB / 364.2 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-05/0.1326, allocations: 7.938 kB / 364.2 MB, free: 6.629 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002696/0.1328, allocations: 241.9 kB / 364.4 MB, free: 6.395 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1329, allocations: 0 / 364.4 MB, free: 6.395 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003982/0.1333, allocations: 83.69 kB / 364.5 MB, free: 6.312 MB / 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.0002378/0.1335, allocations: 111.1 kB / 364.6 MB, free: 6.195 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000358/0.1339, allocations: 187.7 kB / 364.8 MB, free: 6.012 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1339, allocations: 0 / 364.8 MB, free: 6.012 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001805/0.1341, allocations: 107.9 kB / 364.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004793/0.1346, allocations: 55.61 kB / 365 MB, free: 5.848 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001744/0.1363, allocations: 0.9304 MB / 365.9 MB, free: 4.887 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004994/0.1368, allocations: 0.7716 MB / 366.7 MB, free: 4.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001599/0.137, allocations: 34.28 kB / 366.7 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.351e-05/0.1371, allocations: 19.44 kB / 366.7 MB, free: 4.031 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1371, allocations: 0 / 366.7 MB, free: 4.031 MB / 302.1 MB Notification: Performance of Templates: time 0.008338/0.1454, allocations: 3.713 MB / 370.4 MB, free: 372 kB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile (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) 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) Reference file matches