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.001379/0.001379, allocations: 103.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001659/0.001659, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.513/1.513, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001312, allocations: 59.8 kB / 307 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1119, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.005181/0.1172, allocations: 2.967 MB / 360.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001734/0.1189, allocations: 0.7401 MB / 361.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003862/0.1193, allocations: 11.94 kB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003208/0.1197, allocations: 63.42 kB / 361.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004999/0.1202, allocations: 103.1 kB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004929/0.1207, allocations: 115.8 kB / 361.6 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006713/0.1214, allocations: 406.3 kB / 362 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004251/0.1218, allocations: 210 kB / 362.2 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002529/0.1221, allocations: 159.4 kB / 362.3 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003557/0.1225, allocations: 187.2 kB / 362.5 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.186e-05/0.1226, allocations: 40 kB / 362.6 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001707/0.1228, allocations: 55.98 kB / 362.6 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001925/0.123, allocations: 111.6 kB / 362.7 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002445/0.1232, allocations: 199.1 kB / 362.9 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006402/0.1239, allocations: 498.3 kB / 363.4 MB, free: 8.117 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1239, allocations: 0 / 363.4 MB, free: 8.117 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1239, allocations: 0 / 363.4 MB, free: 8.117 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.258e-05/0.1239, allocations: 0 / 363.4 MB, free: 8.117 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.001976/0.1259, allocations: 0.7873 MB / 364.2 MB, free: 7.281 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.126, allocations: 12.03 kB / 364.2 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001018/0.1261, allocations: 74.59 kB / 364.3 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/0.1262, allocations: 40.47 kB / 364.3 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000499/0.1267, allocations: 334.6 kB / 364.6 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.413e-05/0.1267, allocations: 24.97 kB / 364.7 MB, free: 6.754 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.947e-05/0.1268, allocations: 44.27 kB / 364.7 MB, free: 6.711 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005881/0.1274, allocations: 342 kB / 365 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.1274, allocations: 0 / 365 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.908e-05/0.1275, allocations: 19.98 kB / 365.1 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.1275, allocations: 8 kB / 365.1 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004182/0.1279, allocations: 238.4 kB / 365.3 MB, free: 6.105 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001891/0.1298, allocations: 1.303 MB / 366.6 MB, free: 4.719 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003838/0.1302, allocations: 178.5 kB / 366.8 MB, free: 4.535 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002698/0.1305, allocations: 128.8 kB / 366.9 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.395e-05/0.1305, allocations: 0 / 366.9 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.1306, allocations: 46.5 kB / 367 MB, free: 4.352 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.292e-06/0.1306, allocations: 0 / 367 MB, free: 4.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004806/0.1311, allocations: 228.1 kB / 367.2 MB, free: 4.125 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.045e-05/0.1311, allocations: 55.41 kB / 367.2 MB, free: 4.059 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000345/0.1315, allocations: 318.9 kB / 367.5 MB, free: 3.742 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.61e-05/0.1315, allocations: 29.7 kB / 367.6 MB, free: 3.707 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000143/0.1316, allocations: 208 kB / 367.8 MB, free: 3.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.987e-05/0.1317, allocations: 55.28 kB / 367.8 MB, free: 3.445 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.833e-05/0.1318, allocations: 45.61 kB / 367.9 MB, free: 3.395 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.132, allocations: 338.8 kB / 368.2 MB, free: 3.055 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001372/0.1321, allocations: 75.95 kB / 368.3 MB, free: 2.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.1323, allocations: 132.7 kB / 368.4 MB, free: 2.824 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002299/0.1325, allocations: 170.4 kB / 368.6 MB, free: 2.633 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1325, allocations: 4 kB / 368.6 MB, free: 2.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003753/0.1329, allocations: 241 kB / 368.8 MB, free: 2.387 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.1329, allocations: 8 kB / 368.8 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.133, allocations: 3.984 kB / 368.8 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.133, allocations: 7.938 kB / 368.8 MB, free: 2.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.1332, allocations: 43.92 kB / 368.9 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.1332, allocations: 4.25 kB / 368.9 MB, free: 2.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003811/0.1336, allocations: 75.61 kB / 369 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.977e-05/0.1336, allocations: 8 kB / 369 MB, free: 2.238 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.000176/0.1338, allocations: 162.3 kB / 369.1 MB, free: 2.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.5e-05/0.1339, allocations: 27.66 kB / 369.1 MB, free: 2.043 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003919/0.1343, allocations: 199.8 kB / 369.3 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.1343, allocations: 11.98 kB / 369.4 MB, free: 1.828 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1343, allocations: 0 / 369.4 MB, free: 1.828 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.1343, allocations: 0 / 369.4 MB, free: 1.828 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007449/0.135, allocations: 0.6311 MB / 370 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.135, allocations: 0 / 370 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001543/0.1352, allocations: 31.92 kB / 370 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.1352, allocations: 0 / 370 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.882e-05/0.1352, allocations: 8 kB / 370 MB, free: 1.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.1353, allocations: 4.031 kB / 370 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1353, allocations: 0 / 370 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004793/0.1357, allocations: 378.6 kB / 370.4 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.546e-05/0.1358, allocations: 108.8 kB / 370.5 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.688e-05/0.1359, allocations: 4 kB / 370.5 MB, free: 0.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004204/0.1363, allocations: 59.98 kB / 370.6 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002279/0.1366, allocations: 71.88 kB / 370.6 MB, free: 464 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.976e-05/0.1366, allocations: 11.94 kB / 370.6 MB, free: 452 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002292/0.1368, allocations: 233.9 kB / 370.9 MB, free: 216 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1368, allocations: 0 / 370.9 MB, free: 216 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003649/0.1372, allocations: 91.69 kB / 371 MB, free: 124 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.2269/0.3641, allocations: 0.9063 MB / 371.9 MB, free: 19.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004931/0.3646, allocations: 185.2 kB / 372 MB, free: 19.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.3647, allocations: 1 kB / 372.1 MB, free: 19.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00022/0.3649, allocations: 108.9 kB / 372.2 MB, free: 19.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005969/0.3655, allocations: 59.64 kB / 372.2 MB, free: 19.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004499/0.37, allocations: 3.06 MB / 375.3 MB, free: 17.72 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/0.3703, allocations: 0.7752 MB / 376.1 MB, free: 17.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001763/0.3705, allocations: 36.06 kB / 376.1 MB, free: 17.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001514/0.3707, allocations: 112.8 kB / 376.2 MB, free: 16.93 MB / 302.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3707, allocations: 0.625 kB / 376.2 MB, free: 16.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03176/0.4024, allocations: 7.274 MB / 383.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.149/8.552, allocations: 16.86 kB / 383.5 MB, free: 15.61 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