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.001026/0.001026, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001048/0.001048, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.3 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 60.38 kB / 306.3 MB, free: 0.9961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1059, allocations: 50.55 MB / 356.9 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.005087/0.1111, allocations: 3.004 MB / 359.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001658/0.1127, allocations: 0.7518 MB / 360.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003714/0.1131, allocations: 4 kB / 360.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003193/0.1135, allocations: 47.62 kB / 360.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004316/0.1139, allocations: 91.3 kB / 360.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003931/0.1143, allocations: 91.92 kB / 360.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005291/0.1149, allocations: 406.3 kB / 361.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003289/0.1152, allocations: 185.6 kB / 361.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002058/0.1154, allocations: 139.4 kB / 361.6 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002957/0.1158, allocations: 179.2 kB / 361.8 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.026e-05/0.1158, allocations: 28 kB / 361.8 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001417/0.116, allocations: 39.98 kB / 361.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001573/0.1162, allocations: 87.66 kB / 361.9 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002232/0.1164, allocations: 187 kB / 362.1 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004947/0.1169, allocations: 478.3 kB / 362.6 MB, free: 8.723 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1169, allocations: 0 / 362.6 MB, free: 8.723 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1169, allocations: 0 / 362.6 MB, free: 8.723 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.852e-05/0.1169, allocations: 0 / 362.6 MB, free: 8.723 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.001881/0.1188, allocations: 0.7935 MB / 363.4 MB, free: 7.883 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.1189, allocations: 8.031 kB / 363.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.829e-05/0.119, allocations: 70.72 kB / 363.4 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.1191, allocations: 40.47 kB / 363.5 MB, free: 7.758 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005224/0.1196, allocations: 346.5 kB / 363.8 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.805e-05/0.1197, allocations: 25.03 kB / 363.8 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.055e-05/0.1197, allocations: 40.16 kB / 363.9 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006889/0.1204, allocations: 342 kB / 364.2 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.1205, allocations: 0 / 364.2 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.201e-05/0.1205, allocations: 19.98 kB / 364.2 MB, free: 6.953 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.97e-05/0.1205, allocations: 8 kB / 364.2 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004862/0.121, allocations: 238.5 kB / 364.5 MB, free: 6.711 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002122/0.1232, allocations: 1.3 MB / 365.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003799/0.1235, allocations: 182.5 kB / 365.9 MB, free: 5.141 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002927/0.1239, allocations: 128.8 kB / 366.1 MB, free: 5.012 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.662e-05/0.1239, allocations: 7.938 kB / 366.1 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/0.1239, allocations: 42.5 kB / 366.1 MB, free: 4.953 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.563e-06/0.1239, allocations: 0 / 366.1 MB, free: 4.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004941/0.1244, allocations: 227.8 kB / 366.3 MB, free: 4.727 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.628e-05/0.1245, allocations: 51.41 kB / 366.4 MB, free: 4.664 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003816/0.1249, allocations: 322.9 kB / 366.7 MB, free: 4.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.1249, allocations: 29.7 kB / 366.7 MB, free: 4.305 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.1251, allocations: 208 kB / 366.9 MB, free: 4.098 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.709e-05/0.1251, allocations: 55.3 kB / 367 MB, free: 4.043 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.68e-05/0.1252, allocations: 49.61 kB / 367 MB, free: 3.988 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.1253, allocations: 330.8 kB / 367.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001411/0.1255, allocations: 75.95 kB / 367.4 MB, free: 3.582 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001786/0.1257, allocations: 136.7 kB / 367.6 MB, free: 3.422 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002394/0.1259, allocations: 170.1 kB / 367.7 MB, free: 3.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1259, allocations: 0 / 367.7 MB, free: 3.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004073/0.1263, allocations: 241 kB / 368 MB, free: 2.988 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.1264, allocations: 4 kB / 368 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.1264, allocations: 4 kB / 368 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.1264, allocations: 4.25 kB / 368 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001841/0.1266, allocations: 51.92 kB / 368 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.1266, allocations: 3.984 kB / 368 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003808/0.127, allocations: 67.62 kB / 368.1 MB, free: 2.855 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.983e-05/0.127, allocations: 8 kB / 368.1 MB, free: 2.848 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.0001835/0.1272, allocations: 162.3 kB / 368.3 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.303e-05/0.1273, allocations: 35.66 kB / 368.3 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003888/0.1277, allocations: 195.8 kB / 368.5 MB, free: 2.449 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.1277, allocations: 4 kB / 368.5 MB, free: 2.445 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.1277, allocations: 0 / 368.5 MB, free: 2.445 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1277, allocations: 0 / 368.5 MB, free: 2.445 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008023/0.1285, allocations: 0.6278 MB / 369.1 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.1286, allocations: 0 / 369.1 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/0.1287, allocations: 31.92 kB / 369.2 MB, free: 1.727 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.1287, allocations: 4.031 kB / 369.2 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.1288, allocations: 4 kB / 369.2 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.1288, allocations: 4 kB / 369.2 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1288, allocations: 0 / 369.2 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004929/0.1293, allocations: 383 kB / 369.6 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.927e-05/0.1294, allocations: 108.8 kB / 369.7 MB, free: 1.199 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.58e-05/0.1294, allocations: 4.062 kB / 369.7 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003917/0.1298, allocations: 63.86 kB / 369.7 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002308/0.1301, allocations: 71.86 kB / 369.8 MB, free: 1.062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.96e-05/0.1301, allocations: 15.88 kB / 369.8 MB, free: 1.047 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002439/0.1303, allocations: 234 kB / 370 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1303, allocations: 0 / 370 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003576/0.1307, allocations: 91.69 kB / 370.1 MB, free: 0.7266 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.1981/0.3288, allocations: 0.909 MB / 371 MB, free: 19.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000469/0.3293, allocations: 180.7 kB / 371.2 MB, free: 19.97 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3293, allocations: 0 / 371.2 MB, free: 19.97 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002143/0.3295, allocations: 104.5 kB / 371.3 MB, free: 19.97 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006049/0.3301, allocations: 56.03 kB / 371.4 MB, free: 19.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004132/0.3343, allocations: 3.169 MB / 374.5 MB, free: 18.22 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000304/0.3346, allocations: 0.7751 MB / 375.3 MB, free: 17.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001832/0.3348, allocations: 39.41 kB / 375.4 MB, free: 17.51 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001553/0.3349, allocations: 103 kB / 375.5 MB, free: 17.43 MB / 302.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3349, allocations: 0 / 375.5 MB, free: 17.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03373/0.3687, allocations: 6.408 MB / 381.9 MB, free: 16.58 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002086/0.3689, allocations: 216.2 kB / 382.1 MB, free: 16.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.824/2.193, allocations: 1.406 kB / 382.1 MB, free: 16.32 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