Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 107.5 kB / 20.44 MB, free: 1.355 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001662/0.001662, allocations: 193.2 kB / 23.71 MB, free: 4.555 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] 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.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001588, allocations: 55.92 kB / 370.4 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2698, allocations: 52.18 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005924/0.2757, allocations: 3.662 MB / 426.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003118/0.2789, allocations: 1.792 MB / 428 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002654/0.2791, allocations: 15.94 kB / 428 MB, free: 8.922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001264/0.2804, allocations: 0.5681 MB / 428.6 MB, free: 8.352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006159/0.281, allocations: 354.2 kB / 428.9 MB, free: 8.004 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006438/0.2816, allocations: 294.5 kB / 429.2 MB, free: 7.719 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001093/0.2827, allocations: 0.978 MB / 430.2 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003855/0.2831, allocations: 217.1 kB / 430.4 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004131/0.2835, allocations: 390.7 kB / 430.8 MB, free: 6.141 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005966/0.2841, allocations: 494.2 kB / 431.3 MB, free: 5.656 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001255/0.2843, allocations: 80 kB / 431.4 MB, free: 5.578 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002806/0.2845, allocations: 140 kB / 431.5 MB, free: 5.441 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003899/0.2849, allocations: 470.7 kB / 432 MB, free: 4.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000468/0.2854, allocations: 497 kB / 432.4 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00173/0.2871, allocations: 1.778 MB / 434.2 MB, free: 2.707 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.2871, allocations: 3.938 kB / 434.2 MB, free: 2.703 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2871, allocations: 0 / 434.2 MB, free: 2.703 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.932e-05/0.2871, allocations: 0 / 434.2 MB, free: 2.703 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.003046/0.2902, allocations: 1.785 MB / 436 MB, free: 0.875 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.2902, allocations: 12.03 kB / 436 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001202/0.2904, allocations: 90.7 kB / 436.1 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002498/0.2906, allocations: 167.9 kB / 436.3 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00197/0.2926, allocations: 1.141 MB / 437.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001673/0.2927, allocations: 173.8 kB / 437.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.409e-05/0.2928, allocations: 48 kB / 437.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001343/0.2942, allocations: 1.011 MB / 438.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.2942, allocations: 4 kB / 438.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.335e-05/0.2942, allocations: 23.98 kB / 438.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.542e-05/0.2943, allocations: 15.98 kB / 438.7 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008072/0.2951, allocations: 435.6 kB / 439.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004404/0.2995, allocations: 2.594 MB / 441.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001003/0.3005, allocations: 404.8 kB / 442.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006548/0.3011, allocations: 288.1 kB / 442.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/0.3012, allocations: 7.938 kB / 442.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.96e-05/0.3012, allocations: 47 kB / 442.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.284e-06/0.3012, allocations: 0 / 442.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001802/0.303, allocations: 0.7003 MB / 443.1 MB, free: 9.418 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001553/0.3032, allocations: 261 kB / 443.4 MB, free: 9.102 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002817/0.306, allocations: 2.238 MB / 445.6 MB, free: 6.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.934e-05/0.306, allocations: 33.7 kB / 445.7 MB, free: 6.812 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000643/0.3067, allocations: 0.6395 MB / 446.3 MB, free: 6.168 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.3068, allocations: 119 kB / 446.4 MB, free: 6.051 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001342/0.3069, allocations: 82.02 kB / 446.5 MB, free: 5.961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.307, allocations: 321.9 kB / 446.8 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000336/0.3074, allocations: 160.7 kB / 447 MB, free: 5.484 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000566/0.3079, allocations: 0.4943 MB / 447.5 MB, free: 4.887 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007135/0.3087, allocations: 405 kB / 447.9 MB, free: 4.461 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.3087, allocations: 0 / 447.9 MB, free: 4.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001347/0.31, allocations: 0.6416 MB / 448.5 MB, free: 3.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.31, allocations: 7.938 kB / 448.5 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.31, allocations: 4 kB / 448.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002881/0.3103, allocations: 60.81 kB / 448.6 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000366/0.3107, allocations: 96 kB / 448.7 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001838/0.3125, allocations: 1.648 MB / 450.3 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004554/0.313, allocations: 63.64 kB / 450.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.581e-05/0.313, allocations: 12 kB / 450.4 MB, free: 1.805 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0006362/0.3136, allocations: 489.5 kB / 450.9 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001785/0.3138, allocations: 139.1 kB / 451 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002199/0.314, allocations: 165.4 kB / 451.2 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.314, allocations: 4 kB / 451.2 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.314, allocations: 0 / 451.2 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.3141, allocations: 4.062 kB / 451.2 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002658/0.3167, allocations: 1.482 MB / 452.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.3167, allocations: 4 kB / 452.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003263/0.317, allocations: 71.88 kB / 452.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000193/0.3172, allocations: 64.88 kB / 452.8 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.658e-05/0.3173, allocations: 15.92 kB / 452.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00165/0.3189, allocations: 1.606 MB / 454.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.3189, allocations: 12.02 kB / 454.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001489/0.3204, allocations: 0.7999 MB / 455.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006168/0.321, allocations: 263 kB / 455.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001109/0.3211, allocations: 8 kB / 455.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004459/0.3216, allocations: 47.95 kB / 455.5 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.714e-05/0.3217, allocations: 35.94 kB / 455.6 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.152e-05/0.3217, allocations: 8 kB / 455.6 MB, free: 12.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002101/0.3238, allocations: 1.6 MB / 457.2 MB, free: 10.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3238, allocations: 3.938 kB / 457.2 MB, free: 10.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007024/0.3245, allocations: 203.7 kB / 457.4 MB, free: 10.58 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00355/0.328, allocations: 1.739 MB / 459.1 MB, free: 9.023 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001091/0.3291, allocations: 0.4902 MB / 459.6 MB, free: 8.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3291, allocations: 3.938 kB / 459.6 MB, free: 8.516 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005333/0.3297, allocations: 299.2 kB / 459.9 MB, free: 8.211 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008925/0.3306, allocations: 208 kB / 460.1 MB, free: 8.012 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02049/0.351, allocations: 13.86 MB / 474 MB, free: 9.898 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008353/0.3519, allocations: 0.6602 MB / 474.6 MB, free: 9.211 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005419/0.3524, allocations: 223.8 kB / 474.8 MB, free: 8.988 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000637/0.3531, allocations: 475.3 kB / 475.3 MB, free: 8.523 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3531, allocations: 0 / 475.3 MB, free: 8.523 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07272/0.4258, allocations: 29.66 MB / 0.4931 GB, free: 11.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.63/14.05, allocations: 7.031 kB / 0.4931 GB, free: 11.1 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.954454724676907]