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.001522/0.001522, allocations: 104.6 kB / 16.92 MB, free: 6.145 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.001606/0.001606, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.463/1.463, allocations: 222.9 MB / 241.6 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 47.58 kB / 300.7 MB, free: 5.758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1055, allocations: 49.44 MB / 350.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.005603/0.1111, allocations: 2.962 MB / 353.1 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001616/0.1128, allocations: 0.7127 MB / 353.8 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003749/0.1132, allocations: 8 kB / 353.8 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003251/0.1135, allocations: 63.36 kB / 353.9 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004037/0.114, allocations: 103.1 kB / 354 MB, free: 436 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000492/0.1145, allocations: 111.8 kB / 354.1 MB, free: 324 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006128/0.1151, allocations: 406.5 kB / 354.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003978/0.1155, allocations: 213.9 kB / 354.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002487/0.1158, allocations: 155.4 kB / 354.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003389/0.1161, allocations: 191.2 kB / 355.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.325e-05/0.1162, allocations: 40 kB / 355.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001614/0.1164, allocations: 59.98 kB / 355.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000179/0.1166, allocations: 111.6 kB / 355.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002507/0.1168, allocations: 203 kB / 355.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005376/0.1174, allocations: 494.3 kB / 356 MB, free: 14.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.1174, allocations: 0 / 356 MB, free: 14.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1174, allocations: 0 / 356 MB, free: 14.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.73e-05/0.1174, allocations: 0 / 356 MB, free: 14.48 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.00188/0.1193, allocations: 0.7951 MB / 356.7 MB, free: 13.63 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.1193, allocations: 8.031 kB / 356.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.473e-05/0.1195, allocations: 74.66 kB / 356.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.913e-05/0.1196, allocations: 40.47 kB / 356.9 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005027/0.1201, allocations: 342.6 kB / 357.2 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.148e-05/0.1201, allocations: 21.03 kB / 357.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.792e-05/0.1202, allocations: 28.38 kB / 357.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005619/0.1207, allocations: 350 kB / 357.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.1208, allocations: 0 / 357.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.185e-05/0.1208, allocations: 12 kB / 357.6 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.1208, allocations: 12 kB / 357.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004102/0.1212, allocations: 238.5 kB / 357.8 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001927/0.1232, allocations: 1.307 MB / 359.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005296/0.1237, allocations: 182.4 kB / 359.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003796/0.1241, allocations: 124.8 kB / 359.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.666e-05/0.1242, allocations: 4 kB / 359.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.1242, allocations: 38.48 kB / 359.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 2.205e-06/0.1242, allocations: 4 kB / 359.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005031/0.1247, allocations: 225.6 kB / 359.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.647e-05/0.1248, allocations: 51.41 kB / 359.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003907/0.1252, allocations: 319 kB / 360.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.1252, allocations: 25.7 kB / 360.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/0.1254, allocations: 216 kB / 360.3 MB, free: 9.855 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.139e-05/0.1254, allocations: 59.19 kB / 360.4 MB, free: 9.797 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.1255, allocations: 49.61 kB / 360.4 MB, free: 9.742 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.1257, allocations: 334.8 kB / 360.8 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.1259, allocations: 67.97 kB / 360.8 MB, free: 9.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001917/0.1261, allocations: 143.5 kB / 361 MB, free: 9.172 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000264/0.1263, allocations: 163.6 kB / 361.1 MB, free: 8.984 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.1263, allocations: 0 / 361.1 MB, free: 8.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000431/0.1268, allocations: 245 kB / 361.4 MB, free: 8.738 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.1268, allocations: 6.656 kB / 361.4 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.1268, allocations: 4.25 kB / 361.4 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.1269, allocations: 8 kB / 361.4 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.127, allocations: 43.92 kB / 361.4 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.547e-06/0.1271, allocations: 3.984 kB / 361.4 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003908/0.1275, allocations: 67.62 kB / 361.5 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.971e-05/0.1275, allocations: 12 kB / 361.5 MB, free: 8.598 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.000158/0.1277, allocations: 161.7 kB / 361.7 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.184e-05/0.1277, allocations: 23.72 kB / 361.7 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003921/0.1281, allocations: 203 kB / 361.9 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.1281, allocations: 4 kB / 361.9 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.1281, allocations: 0 / 361.9 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1282, allocations: 0 / 361.9 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008946/0.1291, allocations: 0.6317 MB / 362.5 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1291, allocations: 32 / 362.5 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001631/0.1292, allocations: 39.86 kB / 362.6 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.307e-06/0.1293, allocations: 0 / 362.6 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.1293, allocations: 0 / 362.6 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.1293, allocations: 4 kB / 362.6 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1293, allocations: 0 / 362.6 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005318/0.1298, allocations: 383.8 kB / 362.9 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.055e-05/0.1299, allocations: 104.9 kB / 363 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.711e-05/0.13, allocations: 4 kB / 363 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004362/0.1304, allocations: 59.91 kB / 363.1 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000247/0.1307, allocations: 75.88 kB / 363.2 MB, free: 6.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.1307, allocations: 7.938 kB / 363.2 MB, free: 6.809 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002454/0.131, allocations: 241.9 kB / 363.4 MB, free: 6.578 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.131, allocations: 0 / 363.4 MB, free: 6.578 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003617/0.1313, allocations: 83.69 kB / 363.5 MB, free: 6.496 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.0009543/0.1323, allocations: 0.9159 MB / 364.4 MB, free: 5.547 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000365/0.1327, allocations: 198.5 kB / 364.6 MB, free: 5.355 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1327, allocations: 0 / 364.6 MB, free: 5.355 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001713/0.1329, allocations: 107.8 kB / 364.7 MB, free: 5.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004228/0.1333, allocations: 64.67 kB / 364.8 MB, free: 5.184 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004169/0.1375, allocations: 3.052 MB / 367.8 MB, free: 1.988 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004411/0.1379, allocations: 0.7751 MB / 368.6 MB, free: 1.188 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001501/0.1381, allocations: 42.27 kB / 368.6 MB, free: 1.148 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001774/0.1383, allocations: 107.4 kB / 368.7 MB, free: 1.043 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1383, allocations: 0 / 368.7 MB, free: 1.043 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1982/0.3365, allocations: 7.303 MB / 376.1 MB, free: 25.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.728/8.065, allocations: 9.562 kB / 376.1 MB, free: 25.01 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