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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 101.9 kB / 16.62 MB, free: 6.812 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.001472/0.001472, allocations: 189.9 kB / 17.55 MB, free: 5.953 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.345/1.345, allocations: 222.9 MB / 241.2 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 55.62 kB / 300.2 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1064, allocations: 49.44 MB / 349.7 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004643/0.1111, allocations: 2.991 MB / 352.7 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001533/0.1127, allocations: 0.709 MB / 353.4 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003106/0.113, allocations: 11.94 kB / 353.4 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002749/0.1133, allocations: 39.69 kB / 353.4 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003712/0.1137, allocations: 91.3 kB / 353.5 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00037/0.1141, allocations: 95.86 kB / 353.6 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004908/0.1146, allocations: 410.4 kB / 354 MB, free: 308 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003261/0.1149, allocations: 210 kB / 354.2 MB, free: 96 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002132/0.1151, allocations: 159.4 kB / 354.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002605/0.1154, allocations: 187.2 kB / 354.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.788e-05/0.1155, allocations: 44 kB / 354.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.1156, allocations: 59.94 kB / 354.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001444/0.1158, allocations: 115.6 kB / 354.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001776/0.116, allocations: 203 kB / 355 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004775/0.1164, allocations: 494.3 kB / 355.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1165, allocations: 0 / 355.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1165, allocations: 0 / 355.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.678e-05/0.1165, allocations: 4 kB / 355.5 MB, free: 14.85 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.001594/0.1181, allocations: 0.7912 MB / 356.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.1181, allocations: 8.031 kB / 356.3 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.326e-05/0.1182, allocations: 66.72 kB / 356.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.822e-05/0.1183, allocations: 48.41 kB / 356.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004351/0.1188, allocations: 338.6 kB / 356.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.1188, allocations: 24.97 kB / 356.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.275e-05/0.1189, allocations: 32.38 kB / 356.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006057/0.1195, allocations: 338 kB / 357.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.386e-05/0.1195, allocations: 4 kB / 357.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.415e-05/0.1196, allocations: 8 kB / 357.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.1196, allocations: 8 kB / 357.1 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004494/0.12, allocations: 246.4 kB / 357.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001811/0.1218, allocations: 1.319 MB / 358.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003815/0.1222, allocations: 174.5 kB / 358.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000256/0.1225, allocations: 124.8 kB / 359 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.645e-05/0.1226, allocations: 8 kB / 359 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.282e-05/0.1226, allocations: 38.5 kB / 359 MB, free: 11.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.563e-06/0.1226, allocations: 0 / 359 MB, free: 11.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004954/0.1231, allocations: 237.5 kB / 359.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.153e-05/0.1231, allocations: 51.41 kB / 359.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003703/0.1235, allocations: 315 kB / 359.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/0.1236, allocations: 29.7 kB / 359.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.1237, allocations: 204 kB / 359.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.464e-05/0.1238, allocations: 59.2 kB / 359.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.464e-05/0.1239, allocations: 49.61 kB / 359.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.124, allocations: 338.8 kB / 360.3 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000152/0.1241, allocations: 75.95 kB / 360.3 MB, free: 9.711 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000172/0.1243, allocations: 135.6 kB / 360.5 MB, free: 9.551 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002307/0.1246, allocations: 166.2 kB / 360.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1246, allocations: 0 / 360.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003997/0.125, allocations: 249 kB / 360.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.125, allocations: 4 kB / 360.9 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.125, allocations: 7.938 kB / 360.9 MB, free: 9.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.125, allocations: 256 / 360.9 MB, free: 9.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001727/0.1252, allocations: 47.92 kB / 360.9 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.1252, allocations: 4 kB / 360.9 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000367/0.1256, allocations: 71.61 kB / 361 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.861e-05/0.1256, allocations: 12 kB / 361 MB, free: 8.969 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.0001543/0.1258, allocations: 153.7 kB / 361.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.501e-05/0.1259, allocations: 27.72 kB / 361.2 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003941/0.1263, allocations: 199.8 kB / 361.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.624e-06/0.1263, allocations: 0 / 361.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/0.1263, allocations: 4 kB / 361.4 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.1263, allocations: 0 / 361.4 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007605/0.1271, allocations: 0.6312 MB / 362 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1271, allocations: 3.938 kB / 362 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001534/0.1272, allocations: 31.92 kB / 362.1 MB, free: 7.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-06/0.1273, allocations: 8.031 kB / 362.1 MB, free: 7.848 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.1273, allocations: 0 / 362.1 MB, free: 7.848 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.1273, allocations: 0 / 362.1 MB, free: 7.848 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.1273, allocations: 4 kB / 362.1 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000517/0.1278, allocations: 379.9 kB / 362.4 MB, free: 7.453 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.439e-05/0.1279, allocations: 100.8 kB / 362.5 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.774e-05/0.128, allocations: 11.94 kB / 362.6 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003962/0.1284, allocations: 55.98 kB / 362.6 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002148/0.1286, allocations: 79.88 kB / 362.7 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.83e-05/0.1286, allocations: 7.938 kB / 362.7 MB, free: 7.184 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002375/0.1289, allocations: 233.9 kB / 362.9 MB, free: 6.957 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1289, allocations: 0 / 362.9 MB, free: 6.957 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000346/0.1293, allocations: 87.69 kB / 363 MB, free: 6.871 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.00084/0.1301, allocations: 0.9266 MB / 363.9 MB, free: 5.914 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003697/0.1305, allocations: 188.1 kB / 364.1 MB, free: 5.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1305, allocations: 4 kB / 364.1 MB, free: 5.727 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001827/0.1307, allocations: 110.6 kB / 364.2 MB, free: 5.621 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004059/0.1311, allocations: 59.17 kB / 364.3 MB, free: 5.562 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004161/0.1353, allocations: 3.169 MB / 367.5 MB, free: 2.254 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00046/0.1357, allocations: 0.7829 MB / 368.2 MB, free: 1.441 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001635/0.1359, allocations: 38.28 kB / 368.3 MB, free: 1.406 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001967/0.1361, allocations: 103.4 kB / 368.4 MB, free: 1.305 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1361, allocations: 0 / 368.4 MB, free: 1.305 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.192/0.3281, allocations: 6.618 MB / 375 MB, free: 25.43 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001789/0.3284, allocations: 216.2 kB / 375.2 MB, free: 25.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.039/2.367, allocations: 0 / 375.2 MB, free: 25.18 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > 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/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_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches