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.0007005/0.0007009, allocations: 96.92 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007939/0.000794, allocations: 202.5 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.218/1.218, allocations: 227.7 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000194/0.0001941, allocations: 4 kB / 307.8 MB, free: 0.7188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08486/0.08507, allocations: 51.52 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.002802/0.08791, allocations: 2.642 MB / 362 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001208/0.08914, allocations: 0.7285 MB / 362.7 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002254/0.08939, allocations: 11.94 kB / 362.7 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001798/0.08958, allocations: 39.69 kB / 362.8 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002741/0.08986, allocations: 95.28 kB / 362.9 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002635/0.09013, allocations: 87.94 kB / 363 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004052/0.09055, allocations: 414.2 kB / 363.4 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002755/0.09083, allocations: 181.6 kB / 363.5 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001772/0.09102, allocations: 123.4 kB / 363.7 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002428/0.09127, allocations: 163.2 kB / 363.8 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.458e-05/0.09133, allocations: 16 kB / 363.8 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.479e-05/0.09143, allocations: 27.94 kB / 363.9 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001184/0.09155, allocations: 75.72 kB / 363.9 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000175/0.09173, allocations: 200.7 kB / 364.1 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004106/0.09215, allocations: 466.2 kB / 364.6 MB, free: 7.926 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.09216, allocations: 0 / 364.6 MB, free: 7.926 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.09217, allocations: 0 / 364.6 MB, free: 7.926 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.09219, allocations: 4 kB / 364.6 MB, free: 7.922 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.001521/0.09372, allocations: 0.7642 MB / 365.4 MB, free: 7.109 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.09376, allocations: 12.03 kB / 365.4 MB, free: 7.098 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.879e-05/0.09385, allocations: 66.72 kB / 365.4 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.188e-05/0.09394, allocations: 40.47 kB / 365.5 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004049/0.09435, allocations: 346.4 kB / 365.8 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.09438, allocations: 21.03 kB / 365.8 MB, free: 6.586 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.912e-05/0.09445, allocations: 32.38 kB / 365.9 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005498/0.095, allocations: 350 kB / 366.2 MB, free: 6.203 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.09503, allocations: 7.938 kB / 366.2 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.281e-05/0.09506, allocations: 12 kB / 366.2 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.09508, allocations: 8 kB / 366.2 MB, free: 6.176 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004073/0.09549, allocations: 238.5 kB / 366.5 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001728/0.09723, allocations: 1.311 MB / 367.8 MB, free: 4.547 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003608/0.0976, allocations: 190.4 kB / 368 MB, free: 4.352 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002435/0.09786, allocations: 136.7 kB / 368.1 MB, free: 4.215 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/0.0979, allocations: 0 / 368.1 MB, free: 4.215 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.121e-05/0.09792, allocations: 34.56 kB / 368.1 MB, free: 4.172 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.052e-06/0.09793, allocations: 0 / 368.1 MB, free: 4.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004284/0.09836, allocations: 232.5 kB / 368.4 MB, free: 3.941 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.807e-05/0.0984, allocations: 59.41 kB / 368.4 MB, free: 3.871 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003257/0.09873, allocations: 322.9 kB / 368.7 MB, free: 3.547 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/0.09876, allocations: 25.7 kB / 368.7 MB, free: 3.516 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.09889, allocations: 208 kB / 369 MB, free: 3.309 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.695e-05/0.09894, allocations: 59.19 kB / 369 MB, free: 3.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.012e-05/0.09899, allocations: 25.7 kB / 369 MB, free: 3.219 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.0991, allocations: 338.8 kB / 369.4 MB, free: 2.879 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.09924, allocations: 67.97 kB / 369.4 MB, free: 2.812 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001563/0.09941, allocations: 140.8 kB / 369.6 MB, free: 2.648 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002133/0.09963, allocations: 159.6 kB / 369.7 MB, free: 2.465 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.09963, allocations: 0 / 369.7 MB, free: 2.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003713/0.1, allocations: 251.8 kB / 370 MB, free: 2.215 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.1, allocations: 4 kB / 370 MB, free: 2.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.1, allocations: 4 kB / 370 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.1001, allocations: 0 / 370 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001735/0.1002, allocations: 47.91 kB / 370 MB, free: 2.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/0.1003, allocations: 4 kB / 370 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004057/0.1007, allocations: 91.84 kB / 370.1 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.032e-05/0.1007, allocations: 15.98 kB / 370.1 MB, free: 2.051 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.00014/0.1009, allocations: 158.3 kB / 370.3 MB, free: 1.887 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.265e-05/0.1009, allocations: 31.62 kB / 370.3 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003786/0.1013, allocations: 203.7 kB / 370.5 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.1013, allocations: 3.938 kB / 370.5 MB, free: 1.648 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.1013, allocations: 0 / 370.5 MB, free: 1.648 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.1013, allocations: 0 / 370.5 MB, free: 1.648 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007046/0.102, allocations: 0.6317 MB / 371.2 MB, free: 0.957 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.102, allocations: 0 / 371.2 MB, free: 0.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001436/0.1022, allocations: 32.02 kB / 371.2 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.1022, allocations: 0 / 371.2 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/0.1022, allocations: 4 kB / 371.2 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.1022, allocations: 0 / 371.2 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.1022, allocations: 3.938 kB / 371.2 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004409/0.1027, allocations: 382.4 kB / 371.6 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.137e-05/0.1028, allocations: 104.8 kB / 371.7 MB, free: 416 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.04e-05/0.1028, allocations: 12.06 kB / 371.7 MB, free: 404 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000424/0.1033, allocations: 71.92 kB / 371.8 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001695/0.1034, allocations: 83.8 kB / 371.8 MB, free: 248 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.1035, allocations: 7.938 kB / 371.8 MB, free: 240 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002188/0.1037, allocations: 233.9 kB / 372.1 MB, free: 4 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1037, allocations: 0 / 372.1 MB, free: 4 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.1394/0.2431, allocations: 83.17 kB / 372.2 MB, free: 18.75 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.0007726/0.2439, allocations: 0.9127 MB / 373.1 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003627/0.2443, allocations: 181.1 kB / 373.2 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.2443, allocations: 2.75 kB / 373.2 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001673/0.2445, allocations: 107.4 kB / 373.3 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004636/0.245, allocations: 56.06 kB / 373.4 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00374/0.2487, allocations: 3.255 MB / 376.7 MB, free: 16.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002126/0.249, allocations: 0.7752 MB / 377.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001551/0.2491, allocations: 38.42 kB / 377.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001496/0.2493, allocations: 103 kB / 377.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2493, allocations: 1.375 kB / 377.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01728/0.2666, allocations: 6.291 MB / 383.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001469/0.2667, allocations: 221.2 kB / 384.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.733/2, allocations: 1.062 kB / 384.1 MB, free: 14.62 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