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.001071/0.001071, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001102/0.001102, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 64.08 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2851, allocations: 50.54 MB / 408.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004837/0.29, allocations: 2.992 MB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.2917, allocations: 0.7401 MB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003449/0.2921, allocations: 7.938 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000305/0.2925, allocations: 59.44 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004311/0.2929, allocations: 111.1 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004274/0.2933, allocations: 103.8 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005821/0.2939, allocations: 414.3 kB / 413.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003586/0.2943, allocations: 205.8 kB / 413.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002269/0.2945, allocations: 159.4 kB / 413.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003141/0.2949, allocations: 183.2 kB / 413.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.691e-05/0.295, allocations: 40 kB / 413.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001435/0.2951, allocations: 59.98 kB / 413.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001617/0.2953, allocations: 103.7 kB / 413.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002205/0.2955, allocations: 211 kB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005702/0.2961, allocations: 0.4931 MB / 414.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.2961, allocations: 4 kB / 414.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2961, allocations: 3.938 kB / 414.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.987e-05/0.2961, allocations: 0 / 414.6 MB, free: 11.66 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.001784/0.2979, allocations: 0.7948 MB / 415.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.298, allocations: 8.031 kB / 415.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.129e-05/0.2981, allocations: 74.66 kB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.913e-05/0.2982, allocations: 40.7 kB / 415.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005345/0.2987, allocations: 342.7 kB / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.738e-05/0.2987, allocations: 33.03 kB / 415.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.721e-05/0.2988, allocations: 28.38 kB / 415.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005834/0.2994, allocations: 346 kB / 416.2 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.2994, allocations: 0 / 416.2 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.75e-05/0.2995, allocations: 12 kB / 416.3 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.2995, allocations: 11.94 kB / 416.3 MB, free: 9.887 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004147/0.2999, allocations: 238.5 kB / 416.5 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001857/0.3018, allocations: 1.308 MB / 417.8 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003955/0.3022, allocations: 182.4 kB / 418 MB, free: 8.074 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002478/0.3024, allocations: 120.8 kB / 418.1 MB, free: 7.953 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.527e-05/0.3025, allocations: 4.281 kB / 418.1 MB, free: 7.949 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.3025, allocations: 38.55 kB / 418.1 MB, free: 7.902 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.362e-06/0.3025, allocations: 4 kB / 418.1 MB, free: 7.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004896/0.303, allocations: 229.4 kB / 418.4 MB, free: 7.668 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.3031, allocations: 51.41 kB / 418.4 MB, free: 7.605 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003636/0.3035, allocations: 326.9 kB / 418.7 MB, free: 7.277 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.3035, allocations: 29.64 kB / 418.8 MB, free: 7.242 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000144/0.3036, allocations: 212.4 kB / 419 MB, free: 7.031 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.152e-05/0.3037, allocations: 55.58 kB / 419 MB, free: 6.977 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.3038, allocations: 49.66 kB / 419.1 MB, free: 6.922 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.3039, allocations: 338.8 kB / 419.4 MB, free: 6.582 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001391/0.3041, allocations: 67.97 kB / 419.5 MB, free: 6.516 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001724/0.3043, allocations: 135.6 kB / 419.6 MB, free: 6.355 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002285/0.3045, allocations: 167.5 kB / 419.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.3045, allocations: 0 / 419.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004112/0.3049, allocations: 251.5 kB / 420 MB, free: 5.914 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.3049, allocations: 4 kB / 420 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.305, allocations: 4 kB / 420 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.305, allocations: 4 kB / 420 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001805/0.3052, allocations: 47.91 kB / 420.1 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.3052, allocations: 0 / 420.1 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003914/0.3056, allocations: 68.03 kB / 420.1 MB, free: 5.789 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.428e-05/0.3056, allocations: 12 kB / 420.2 MB, free: 5.777 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.0001593/0.3058, allocations: 161.6 kB / 420.3 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.078e-05/0.3059, allocations: 27.81 kB / 420.3 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003938/0.3063, allocations: 199.7 kB / 420.5 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.3063, allocations: 7.938 kB / 420.5 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.3063, allocations: 4 kB / 420.5 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3063, allocations: 0 / 420.5 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007918/0.3071, allocations: 0.6354 MB / 421.2 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3071, allocations: 0 / 421.2 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001563/0.3073, allocations: 27.98 kB / 421.2 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.3073, allocations: 0 / 421.2 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.539e-05/0.3073, allocations: 0 / 421.2 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.522e-06/0.3073, allocations: 8 kB / 421.2 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3073, allocations: 0 / 421.2 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004727/0.3078, allocations: 388.5 kB / 421.6 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.718e-05/0.3079, allocations: 108.9 kB / 421.7 MB, free: 4.117 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.745e-05/0.3079, allocations: 8 kB / 421.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004136/0.3084, allocations: 55.98 kB / 421.8 MB, free: 4.055 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001786/0.3085, allocations: 75.88 kB / 421.8 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.037e-05/0.3086, allocations: 7.938 kB / 421.8 MB, free: 3.973 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000238/0.3088, allocations: 237.9 kB / 422.1 MB, free: 3.738 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3088, allocations: 4 kB / 422.1 MB, free: 3.734 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003713/0.3092, allocations: 83.78 kB / 422.2 MB, free: 3.652 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.0008579/0.3101, allocations: 0.9123 MB / 423.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003638/0.3104, allocations: 179.8 kB / 423.3 MB, free: 2.531 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3105, allocations: 0 / 423.3 MB, free: 2.531 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001845/0.3106, allocations: 110.8 kB / 423.4 MB, free: 2.426 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004457/0.3111, allocations: 61.36 kB / 423.4 MB, free: 2.363 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003803/0.3149, allocations: 3.05 MB / 426.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000352/0.3153, allocations: 0.7753 MB / 427.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001482/0.3154, allocations: 38.27 kB / 427.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001753/0.3156, allocations: 107.4 kB / 427.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3156, allocations: 0 / 427.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02553/0.3412, allocations: 7.384 MB / 434.8 MB, free: 7.004 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.755/8.096, allocations: 7.922 kB / 434.8 MB, free: 6.996 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.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