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.001141/0.001141, allocations: 96.23 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00149/0.00149, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002656/0.0002657, allocations: 4 kB / 306.6 MB, free: 1.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1156, allocations: 51.49 MB / 358.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.002985/0.1186, allocations: 2.406 MB / 360.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.1199, allocations: 0.7289 MB / 361.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001504/0.12, allocations: 7.938 kB / 361.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001309/0.1202, allocations: 39.69 kB / 361.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002293/0.1204, allocations: 119.7 kB / 361.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002665/0.1207, allocations: 63.94 kB / 361.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003662/0.1211, allocations: 275.4 kB / 361.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002963/0.1214, allocations: 141.2 kB / 361.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001345/0.1215, allocations: 119.5 kB / 361.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002159/0.1217, allocations: 135.4 kB / 362.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.913e-05/0.1218, allocations: 20 kB / 362.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.976e-05/0.1219, allocations: 31.91 kB / 362.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001292/0.122, allocations: 75.73 kB / 362.2 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.709e-05/0.1221, allocations: 93.45 kB / 362.3 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003526/0.1225, allocations: 383.2 kB / 362.7 MB, free: 9.293 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.1225, allocations: 0 / 362.7 MB, free: 9.293 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1225, allocations: 4 kB / 362.7 MB, free: 9.289 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.191e-06/0.1225, allocations: 0 / 362.7 MB, free: 9.289 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.00157/0.1241, allocations: 0.7704 MB / 363.4 MB, free: 8.473 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.1241, allocations: 8.031 kB / 363.4 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.391e-05/0.1242, allocations: 43.47 kB / 363.5 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004534/0.1247, allocations: 341.3 kB / 363.8 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.406e-05/0.1247, allocations: 20.66 kB / 363.8 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.168e-05/0.1248, allocations: 28 kB / 363.9 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005843/0.1254, allocations: 349.8 kB / 364.2 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.1254, allocations: 0 / 364.2 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.929e-05/0.1254, allocations: 15.98 kB / 364.2 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.1254, allocations: 4 kB / 364.2 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004143/0.1259, allocations: 238.5 kB / 364.5 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001966/0.1278, allocations: 1.319 MB / 365.8 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003493/0.1282, allocations: 178.5 kB / 366 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.878e-05/0.1282, allocations: 7.953 kB / 366 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.1283, allocations: 30.56 kB / 366 MB, free: 5.762 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 2.775e-06/0.1283, allocations: 0 / 366 MB, free: 5.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004492/0.1287, allocations: 243.9 kB / 366.2 MB, free: 5.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.1288, allocations: 59.34 kB / 366.3 MB, free: 5.449 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003491/0.1291, allocations: 315 kB / 366.6 MB, free: 5.129 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.1292, allocations: 29.7 kB / 366.6 MB, free: 5.094 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.1293, allocations: 208 kB / 366.8 MB, free: 4.887 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.929e-05/0.1294, allocations: 55.19 kB / 366.9 MB, free: 4.832 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.422e-05/0.1294, allocations: 4 kB / 366.9 MB, free: 4.828 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.1295, allocations: 338.8 kB / 367.2 MB, free: 4.488 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.1297, allocations: 75.95 kB / 367.3 MB, free: 4.414 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/0.1298, allocations: 127.9 kB / 367.4 MB, free: 4.266 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001109/0.13, allocations: 67.89 kB / 367.5 MB, free: 4.199 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.13, allocations: 3.984 kB / 367.5 MB, free: 4.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003623/0.1303, allocations: 241.1 kB / 367.7 MB, free: 3.953 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.1304, allocations: 4 kB / 367.7 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.1304, allocations: 4 kB / 367.7 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.1304, allocations: 4 kB / 367.7 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001918/0.1306, allocations: 47.91 kB / 367.8 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.1306, allocations: 4 kB / 367.8 MB, free: 3.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004015/0.131, allocations: 95.98 kB / 367.9 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.687e-05/0.1311, allocations: 8 kB / 367.9 MB, free: 3.789 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on1,pulseSeries.on2,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001588/0.1312, allocations: 157.8 kB / 368 MB, free: 3.625 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.428e-05/0.1313, allocations: 27.67 kB / 368.1 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004057/0.1317, allocations: 211.6 kB / 368.3 MB, free: 3.387 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.1317, allocations: 4 kB / 368.3 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.1317, allocations: 0 / 368.3 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1317, allocations: 0 / 368.3 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004061/0.1321, allocations: 373.3 kB / 368.6 MB, free: 2.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.1322, allocations: 0 / 368.6 MB, free: 2.969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001668/0.1323, allocations: 35.97 kB / 368.7 MB, free: 2.934 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.1323, allocations: 4 kB / 368.7 MB, free: 2.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.901e-05/0.1324, allocations: 7.953 kB / 368.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1324, allocations: 0 / 368.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1324, allocations: 0 / 368.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004824/0.1329, allocations: 385.3 kB / 369.1 MB, free: 2.531 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.46e-05/0.133, allocations: 104.8 kB / 369.2 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.321e-05/0.133, allocations: 4 kB / 369.2 MB, free: 2.406 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004099/0.1334, allocations: 91.88 kB / 369.3 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001722/0.1336, allocations: 67.88 kB / 369.3 MB, free: 2.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.747e-05/0.1336, allocations: 8 kB / 369.3 MB, free: 2.242 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002288/0.1339, allocations: 229.9 kB / 369.6 MB, free: 2.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1339, allocations: 4 kB / 369.6 MB, free: 2.016 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003459/0.1342, allocations: 83.69 kB / 369.7 MB, free: 1.934 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001532/0.1344, allocations: 107.2 kB / 369.8 MB, free: 1.816 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003145/0.1347, allocations: 182.4 kB / 369.9 MB, free: 1.641 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.1347, allocations: 0 / 369.9 MB, free: 1.641 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001372/0.1349, allocations: 99.89 kB / 370 MB, free: 1.543 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003188/0.1352, allocations: 44.84 kB / 370.1 MB, free: 1.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/0.1366, allocations: 0.8884 MB / 371 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1694/0.3059, allocations: 0.7793 MB / 371.7 MB, free: 19.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002209/0.3062, allocations: 32.44 kB / 371.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.357e-05/0.3063, allocations: 23.02 kB / 371.8 MB, free: 19.04 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3063, allocations: 0 / 371.8 MB, free: 19.04 MB / 302.1 MB Notification: Performance of Templates: time 0.008036/0.3143, allocations: 3.615 MB / 375.4 MB, free: 18.9 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","../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches