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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001172/0.001172, allocations: 112.6 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001281/0.001281, allocations: 205.8 kB / 18.26 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 246.4 MB, free: 9.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 64.64 kB / 306.6 MB, free: 0.6211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1183, allocations: 50.53 MB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004494/0.1228, allocations: 3.02 MB / 360.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.1244, allocations: 0.7362 MB / 360.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002721/0.1247, allocations: 4 kB / 360.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002825/0.125, allocations: 51.62 kB / 360.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003784/0.1254, allocations: 91.3 kB / 361 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004119/0.1258, allocations: 87.92 kB / 361.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005343/0.1263, allocations: 414.3 kB / 361.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003754/0.1267, allocations: 210 kB / 361.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002312/0.127, allocations: 159.4 kB / 361.8 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002887/0.1273, allocations: 183.2 kB / 362 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.94e-05/0.1274, allocations: 40 kB / 362.1 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001335/0.1275, allocations: 63.97 kB / 362.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001522/0.1277, allocations: 111.6 kB / 362.2 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002275/0.1279, allocations: 199.1 kB / 362.4 MB, free: 8.715 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005374/0.1284, allocations: 498.3 kB / 362.9 MB, free: 8.227 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1285, allocations: 0 / 362.9 MB, free: 8.227 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1285, allocations: 0 / 362.9 MB, free: 8.227 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.1285, allocations: 0 / 362.9 MB, free: 8.227 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.001794/0.1303, allocations: 0.7821 MB / 363.7 MB, free: 7.398 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.1303, allocations: 8.031 kB / 363.7 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.013e-05/0.1304, allocations: 78.59 kB / 363.8 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.627e-05/0.1305, allocations: 40.47 kB / 363.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004628/0.131, allocations: 346.5 kB / 364.1 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.582e-05/0.131, allocations: 25.03 kB / 364.2 MB, free: 6.859 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.791e-05/0.1311, allocations: 36.28 kB / 364.2 MB, free: 6.824 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006262/0.1317, allocations: 350 kB / 364.6 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.1318, allocations: 0 / 364.6 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.808e-05/0.1318, allocations: 12 kB / 364.6 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.1318, allocations: 8 kB / 364.6 MB, free: 6.453 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004379/0.1323, allocations: 242.4 kB / 364.8 MB, free: 6.215 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001924/0.1342, allocations: 1.3 MB / 366.1 MB, free: 4.832 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003896/0.1346, allocations: 185.1 kB / 366.3 MB, free: 4.645 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002645/0.1349, allocations: 128.8 kB / 366.4 MB, free: 4.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.963e-05/0.1349, allocations: 0 / 366.4 MB, free: 4.516 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.865e-05/0.135, allocations: 46.5 kB / 366.5 MB, free: 4.461 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.693e-06/0.135, allocations: 0 / 366.5 MB, free: 4.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004946/0.1355, allocations: 221.6 kB / 366.7 MB, free: 4.238 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.1356, allocations: 51.41 kB / 366.7 MB, free: 4.176 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004085/0.136, allocations: 326.9 kB / 367 MB, free: 3.852 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.805e-05/0.136, allocations: 29.7 kB / 367.1 MB, free: 3.816 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.1362, allocations: 208 kB / 367.3 MB, free: 3.609 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.795e-05/0.1362, allocations: 55.28 kB / 367.3 MB, free: 3.555 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.01e-05/0.1363, allocations: 49.61 kB / 367.4 MB, free: 3.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.1365, allocations: 334.8 kB / 367.7 MB, free: 3.164 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001372/0.1366, allocations: 75.95 kB / 367.8 MB, free: 3.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000173/0.1368, allocations: 132.7 kB / 367.9 MB, free: 2.934 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002297/0.137, allocations: 170.4 kB / 368.1 MB, free: 2.742 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.137, allocations: 0 / 368.1 MB, free: 2.742 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000417/0.1375, allocations: 241 kB / 368.3 MB, free: 2.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.1375, allocations: 4 kB / 368.3 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.1375, allocations: 4 kB / 368.3 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.1375, allocations: 7.938 kB / 368.3 MB, free: 2.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/0.1377, allocations: 51.91 kB / 368.4 MB, free: 2.434 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.1377, allocations: 0 / 368.4 MB, free: 2.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003893/0.1381, allocations: 79.84 kB / 368.5 MB, free: 2.355 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.974e-05/0.1382, allocations: 8 kB / 368.5 MB, free: 2.348 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.0001623/0.1383, allocations: 162.3 kB / 368.6 MB, free: 2.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.925e-05/0.1384, allocations: 23.72 kB / 368.6 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004012/0.1388, allocations: 195.8 kB / 368.8 MB, free: 1.957 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.1388, allocations: 8 kB / 368.8 MB, free: 1.949 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.1389, allocations: 4 kB / 368.8 MB, free: 1.945 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.1389, allocations: 3.984 kB / 368.9 MB, free: 1.941 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008103/0.1397, allocations: 0.6264 MB / 369.5 MB, free: 1.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1397, allocations: 0 / 369.5 MB, free: 1.258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001863/0.1399, allocations: 31.92 kB / 369.5 MB, free: 1.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.758e-06/0.1399, allocations: 0 / 369.5 MB, free: 1.227 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.169e-05/0.1399, allocations: 7.984 kB / 369.5 MB, free: 1.219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.818e-06/0.1399, allocations: 8.031 kB / 369.5 MB, free: 1.211 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1399, allocations: 0 / 369.5 MB, free: 1.211 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004902/0.1404, allocations: 375.9 kB / 369.9 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.333e-05/0.1405, allocations: 112.8 kB / 370 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.776e-05/0.1406, allocations: 3.984 kB / 370 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003954/0.141, allocations: 59.98 kB / 370.1 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000223/0.1412, allocations: 71.88 kB / 370.1 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.095e-05/0.1413, allocations: 11.94 kB / 370.1 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002671/0.1415, allocations: 234 kB / 370.4 MB, free: 328 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1415, allocations: 0 / 370.4 MB, free: 328 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003934/0.1419, allocations: 83.69 kB / 370.5 MB, free: 244 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.1742/0.3161, allocations: 0.9131 MB / 371.4 MB, free: 18.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004223/0.3166, allocations: 184.6 kB / 371.5 MB, free: 18.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.3166, allocations: 1.812 kB / 371.6 MB, free: 18.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001848/0.3168, allocations: 109.3 kB / 371.7 MB, free: 18.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004698/0.3173, allocations: 48.84 kB / 371.7 MB, free: 18.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003661/0.3209, allocations: 3.191 MB / 374.9 MB, free: 17.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002116/0.3212, allocations: 0.7802 MB / 375.7 MB, free: 16.6 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001622/0.3213, allocations: 34.08 kB / 375.7 MB, free: 16.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001517/0.3215, allocations: 107.5 kB / 375.8 MB, free: 16.58 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3215, allocations: 0 / 375.8 MB, free: 16.58 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02024/0.3417, allocations: 6.581 MB / 382.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001315/0.3419, allocations: 223.3 kB / 382.6 MB, free: 15.47 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.024/2.366, allocations: 1.062 kB / 382.6 MB, free: 15.47 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches