Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001797/0.001797, allocations: 111 kB / 17.06 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002213/0.002213, allocations: 198.9 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009104/0.0009104, allocations: 51.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2266, allocations: 49.44 MB / 400.2 MB, free: 8.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.003807/0.2304, allocations: 2.957 MB / 403.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.2317, allocations: 0.7128 MB / 403.9 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001951/0.2319, allocations: 8 kB / 403.9 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002046/0.2321, allocations: 55.44 kB / 404 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002615/0.2324, allocations: 111 kB / 404.1 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003158/0.2327, allocations: 103.9 kB / 404.2 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000393/0.2331, allocations: 422.2 kB / 404.6 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002746/0.2334, allocations: 203.5 kB / 404.8 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001376/0.2335, allocations: 167.4 kB / 404.9 MB, free: 4.039 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002193/0.2338, allocations: 179.3 kB / 405.1 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.096e-05/0.2338, allocations: 40 kB / 405.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001036/0.2339, allocations: 59.94 kB / 405.2 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001268/0.2341, allocations: 111.6 kB / 405.3 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000165/0.2342, allocations: 203 kB / 405.5 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004367/0.2347, allocations: 0.4905 MB / 406 MB, free: 2.965 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2347, allocations: 0 / 406 MB, free: 2.965 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2347, allocations: 0 / 406 MB, free: 2.965 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.2347, allocations: 4 kB / 406 MB, free: 2.961 MB / 318.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.001455/0.2362, allocations: 0.7912 MB / 406.8 MB, free: 2.121 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.2362, allocations: 16.03 kB / 406.8 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.413e-05/0.2363, allocations: 62.72 kB / 406.9 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.963e-05/0.2364, allocations: 44.41 kB / 406.9 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004222/0.2368, allocations: 342.6 kB / 407.3 MB, free: 1.621 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.147e-05/0.2368, allocations: 24.97 kB / 407.3 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.009e-05/0.2369, allocations: 28.38 kB / 407.3 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004887/0.2374, allocations: 358 kB / 407.7 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.2374, allocations: 0 / 407.7 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/0.2374, allocations: 12 kB / 407.7 MB, free: 1.191 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.2374, allocations: 8 kB / 407.7 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003671/0.2378, allocations: 242.4 kB / 407.9 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001558/0.2394, allocations: 1.296 MB / 409.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003286/0.2397, allocations: 189.8 kB / 409.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002244/0.24, allocations: 120.8 kB / 409.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.964e-05/0.24, allocations: 4 kB / 409.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.089e-05/0.24, allocations: 38.5 kB / 409.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.272e-06/0.24, allocations: 0 / 409.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0004095/0.2404, allocations: 229.5 kB / 409.8 MB, free: 14.97 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.936e-05/0.2405, allocations: 55.34 kB / 409.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002905/0.2408, allocations: 315 kB / 410.1 MB, free: 14.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.2408, allocations: 33.7 kB / 410.2 MB, free: 14.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.2409, allocations: 212 kB / 410.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.841e-05/0.241, allocations: 51.2 kB / 410.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.357e-05/0.241, allocations: 45.7 kB / 410.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.653e-05/0.2412, allocations: 334.8 kB / 410.8 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.2413, allocations: 75.95 kB / 410.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.2414, allocations: 135.6 kB / 411 MB, free: 13.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001948/0.2416, allocations: 171.4 kB / 411.2 MB, free: 13.47 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2416, allocations: 0 / 411.2 MB, free: 13.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003396/0.242, allocations: 243.1 kB / 411.4 MB, free: 13.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.242, allocations: 4.25 kB / 411.4 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.242, allocations: 8 kB / 411.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.242, allocations: 4 kB / 411.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.2422, allocations: 39.92 kB / 411.5 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.156e-06/0.2422, allocations: 7.984 kB / 411.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003626/0.2426, allocations: 71.66 kB / 411.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.458e-05/0.2426, allocations: 12 kB / 411.6 MB, free: 13.08 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.0001321/0.2428, allocations: 165.6 kB / 411.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.942e-05/0.2428, allocations: 27.66 kB / 411.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000337/0.2432, allocations: 195.8 kB / 411.9 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.2432, allocations: 4 kB / 411.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.2432, allocations: 0 / 411.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.2432, allocations: 0 / 411.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006715/0.2439, allocations: 0.6279 MB / 412.6 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2439, allocations: 8.031 kB / 412.6 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001424/0.244, allocations: 27.92 kB / 412.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.244, allocations: 4 kB / 412.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.631e-05/0.2441, allocations: 4 kB / 412.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.2441, allocations: 4 kB / 412.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.2441, allocations: 4 kB / 412.6 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004179/0.2445, allocations: 379.6 kB / 413 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.889e-05/0.2446, allocations: 108.8 kB / 413.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.67e-05/0.2446, allocations: 11.94 kB / 413.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003918/0.245, allocations: 55.92 kB / 413.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.2452, allocations: 71.88 kB / 413.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.568e-05/0.2452, allocations: 7.938 kB / 413.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002049/0.2454, allocations: 237.9 kB / 413.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2454, allocations: 0 / 413.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003185/0.2457, allocations: 91.69 kB / 413.6 MB, free: 10.96 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.0006679/0.2464, allocations: 0.916 MB / 414.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002956/0.2467, allocations: 179.8 kB / 414.7 MB, free: 9.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.2467, allocations: 7.938 kB / 414.7 MB, free: 9.832 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001515/0.2469, allocations: 103.9 kB / 414.8 MB, free: 9.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003779/0.2473, allocations: 59.69 kB / 414.8 MB, free: 9.676 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003258/0.2506, allocations: 3.038 MB / 417.9 MB, free: 6.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002668/0.2508, allocations: 0.779 MB / 418.6 MB, free: 5.695 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001229/0.251, allocations: 38.28 kB / 418.7 MB, free: 5.66 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001479/0.2511, allocations: 111.3 kB / 418.8 MB, free: 5.551 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2511, allocations: 0 / 418.8 MB, free: 5.551 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.043/4.294, allocations: 7.548 MB / 426.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.2/20.49, allocations: 11.53 kB / 426.4 MB, free: 14.15 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches