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.001259/0.001259, allocations: 118.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001949/0.001949, allocations: 198 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002168/0.002168, allocations: 67.88 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2939, allocations: 50.54 MB / 408.7 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004793/0.2987, allocations: 2.984 MB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001585/0.3003, allocations: 0.7401 MB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000191/0.3005, allocations: 11.94 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002412/0.3008, allocations: 55.44 kB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002787/0.3011, allocations: 107.1 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003457/0.3015, allocations: 107.8 kB / 412.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004806/0.302, allocations: 414.3 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003686/0.3023, allocations: 205.8 kB / 413.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001929/0.3025, allocations: 163.4 kB / 413.5 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002981/0.3029, allocations: 179.2 kB / 413.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.081e-05/0.3029, allocations: 40 kB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001262/0.3031, allocations: 59.98 kB / 413.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001754/0.3032, allocations: 103.7 kB / 413.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001947/0.3034, allocations: 207 kB / 414.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006453/0.3041, allocations: 0.4932 MB / 414.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.189e-05/0.3041, allocations: 8 kB / 414.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3041, allocations: 3.938 kB / 414.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.3041, allocations: 0 / 414.6 MB, free: 11.68 MB / 334.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.00184/0.306, allocations: 0.7948 MB / 415.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.536e-05/0.3061, allocations: 12.02 kB / 415.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001073/0.3062, allocations: 66.73 kB / 415.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.756e-05/0.3063, allocations: 40.7 kB / 415.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005889/0.3069, allocations: 346.7 kB / 415.8 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.66e-05/0.3069, allocations: 25.03 kB / 415.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.192e-05/0.307, allocations: 32.38 kB / 415.9 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000601/0.3076, allocations: 350 kB / 416.2 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.3076, allocations: 0 / 416.2 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.649e-05/0.3077, allocations: 12 kB / 416.2 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.3077, allocations: 8 kB / 416.3 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004207/0.3081, allocations: 238.5 kB / 416.5 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001867/0.31, allocations: 1.304 MB / 417.8 MB, free: 8.281 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004077/0.3104, allocations: 193.9 kB / 418 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002797/0.3107, allocations: 120.8 kB / 418.1 MB, free: 7.965 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.292e-05/0.3107, allocations: 4.281 kB / 418.1 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.3108, allocations: 34.56 kB / 418.1 MB, free: 7.918 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.543e-06/0.3108, allocations: 0 / 418.1 MB, free: 7.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.000508/0.3113, allocations: 229.4 kB / 418.4 MB, free: 7.688 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.953e-05/0.3114, allocations: 59.39 kB / 418.4 MB, free: 7.617 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003905/0.3117, allocations: 323 kB / 418.7 MB, free: 7.293 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.019e-05/0.3118, allocations: 29.64 kB / 418.8 MB, free: 7.258 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001591/0.312, allocations: 212.4 kB / 419 MB, free: 7.047 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.363e-05/0.312, allocations: 55.53 kB / 419 MB, free: 6.992 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.057e-05/0.3121, allocations: 53.59 kB / 419.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.3123, allocations: 334.8 kB / 419.4 MB, free: 6.598 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001347/0.3124, allocations: 71.95 kB / 419.5 MB, free: 6.527 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001899/0.3126, allocations: 135.6 kB / 419.6 MB, free: 6.367 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002393/0.3129, allocations: 174.5 kB / 419.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3129, allocations: 0 / 419.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004132/0.3133, allocations: 245.3 kB / 420 MB, free: 5.926 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.3133, allocations: 4 kB / 420 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.3133, allocations: 4 kB / 420 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.3133, allocations: 4 kB / 420 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001878/0.3135, allocations: 47.91 kB / 420.1 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.3136, allocations: 0 / 420.1 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003656/0.3139, allocations: 67.86 kB / 420.1 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.938e-05/0.314, allocations: 16 kB / 420.2 MB, free: 5.785 MB / 334.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.0001751/0.3141, allocations: 153.7 kB / 420.3 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.901e-05/0.3142, allocations: 27.81 kB / 420.3 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004007/0.3146, allocations: 199.7 kB / 420.5 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.629e-05/0.3146, allocations: 4 kB / 420.5 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3147, allocations: 0 / 420.5 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.3147, allocations: 3.984 kB / 420.5 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008476/0.3155, allocations: 0.632 MB / 421.2 MB, free: 4.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3155, allocations: 0 / 421.2 MB, free: 4.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001549/0.3157, allocations: 23.98 kB / 421.2 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.3157, allocations: 7.984 kB / 421.2 MB, free: 4.664 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.3157, allocations: 0 / 421.2 MB, free: 4.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.094e-06/0.3157, allocations: 8 kB / 421.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3157, allocations: 0 / 421.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005154/0.3163, allocations: 392 kB / 421.6 MB, free: 4.258 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.2e-05/0.3164, allocations: 108.9 kB / 421.7 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.026e-05/0.3164, allocations: 8 kB / 421.7 MB, free: 4.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004004/0.3168, allocations: 51.92 kB / 421.8 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000173/0.317, allocations: 75.88 kB / 421.8 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.96e-05/0.317, allocations: 12 kB / 421.8 MB, free: 3.988 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002554/0.3173, allocations: 233.9 kB / 422.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3173, allocations: 0 / 422.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003734/0.3177, allocations: 87.78 kB / 422.2 MB, free: 3.672 MB / 334.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.0008917/0.3186, allocations: 0.9162 MB / 423.1 MB, free: 2.723 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003738/0.319, allocations: 178.6 kB / 423.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.319, allocations: 3.938 kB / 423.3 MB, free: 2.547 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001831/0.3192, allocations: 107.9 kB / 423.4 MB, free: 2.441 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004212/0.3196, allocations: 63.64 kB / 423.4 MB, free: 2.379 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0041/0.3237, allocations: 3.047 MB / 426.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004048/0.3241, allocations: 0.7791 MB / 427.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001495/0.3243, allocations: 34.3 kB / 427.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000177/0.3245, allocations: 111.3 kB / 427.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3245, allocations: 0 / 427.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03398/0.3585, allocations: 7.387 MB / 434.8 MB, free: 7.016 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.385/8.744, allocations: 7.438 kB / 434.8 MB, free: 7.012 MB / 350.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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.csv --start-time 0 --stop-time 720 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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