Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 210.8 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.412/1.412, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 47.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2767, allocations: 53.36 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005937/0.2826, allocations: 3.703 MB / 434.8 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003458/0.2861, allocations: 1.944 MB / 436.7 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003287/0.2864, allocations: 15.88 kB / 436.7 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001307/0.2877, allocations: 0.5642 MB / 437.3 MB, free: 392 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007777/0.2885, allocations: 406 kB / 437.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006613/0.2892, allocations: 286.5 kB / 438 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001119/0.2903, allocations: 0.9857 MB / 439 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004125/0.2907, allocations: 229 kB / 439.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004681/0.2912, allocations: 398.7 kB / 439.6 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005841/0.2918, allocations: 0.5061 MB / 440.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001199/0.2919, allocations: 84 kB / 440.2 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002625/0.2921, allocations: 143.9 kB / 440.3 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003788/0.2925, allocations: 478.6 kB / 440.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004599/0.293, allocations: 489.1 kB / 441.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001782/0.2948, allocations: 1.79 MB / 443 MB, free: 10.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2948, allocations: 0 / 443 MB, free: 10.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2948, allocations: 0 / 443 MB, free: 10.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.81e-05/0.2948, allocations: 0 / 443 MB, free: 10.62 MB / 350.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.003019/0.2978, allocations: 1.804 MB / 444.8 MB, free: 8.777 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.2978, allocations: 8.031 kB / 444.8 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001203/0.298, allocations: 94.7 kB / 444.9 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002286/0.2982, allocations: 167.9 kB / 445.1 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001875/0.3001, allocations: 1.13 MB / 446.2 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001653/0.3002, allocations: 181.8 kB / 446.4 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.507e-05/0.3003, allocations: 51.95 kB / 446.5 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/0.3016, allocations: 1.011 MB / 447.5 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.175e-05/0.3016, allocations: 3.938 kB / 447.5 MB, free: 5.938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.267e-05/0.3016, allocations: 24 kB / 447.5 MB, free: 5.914 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.3017, allocations: 12 kB / 447.5 MB, free: 5.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000777/0.3024, allocations: 435.7 kB / 447.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004707/0.3071, allocations: 2.602 MB / 450.5 MB, free: 2.773 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009805/0.3081, allocations: 397.8 kB / 450.9 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006519/0.3088, allocations: 294.3 kB / 451.2 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.296e-05/0.3088, allocations: 7.938 kB / 451.2 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.354e-05/0.3089, allocations: 42.56 kB / 451.3 MB, free: 2.031 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.435e-06/0.3089, allocations: 0 / 451.3 MB, free: 2.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001838/0.3107, allocations: 0.6969 MB / 452 MB, free: 1.324 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001666/0.3109, allocations: 269 kB / 452.2 MB, free: 1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003318/0.3142, allocations: 2.242 MB / 454.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.444e-05/0.3143, allocations: 33.7 kB / 454.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006377/0.3149, allocations: 0.6513 MB / 455.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.315, allocations: 119 kB / 455.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001445/0.3151, allocations: 74.08 kB / 455.3 MB, free: 13.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.3153, allocations: 321.9 kB / 455.7 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003636/0.3157, allocations: 164.6 kB / 455.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005858/0.3162, allocations: 0.4943 MB / 456.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007515/0.317, allocations: 405.2 kB / 456.7 MB, free: 12.35 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.317, allocations: 4 kB / 456.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00144/0.3184, allocations: 0.6414 MB / 457.3 MB, free: 11.69 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.3185, allocations: 11.94 kB / 457.4 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.3185, allocations: 0 / 457.4 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003111/0.3188, allocations: 68.94 kB / 457.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003794/0.3192, allocations: 87.89 kB / 457.5 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001792/0.321, allocations: 1.66 MB / 459.2 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004856/0.3214, allocations: 55.66 kB / 459.2 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.916e-05/0.3215, allocations: 16 kB / 459.2 MB, free: 9.68 MB / 366.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.000675/0.3221, allocations: 485.5 kB / 459.7 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002012/0.3223, allocations: 147.2 kB / 459.9 MB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002368/0.3226, allocations: 169.5 kB / 460 MB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.3226, allocations: 4 kB / 460 MB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3226, allocations: 0 / 460 MB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.3226, allocations: 3.984 kB / 460 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00284/0.3254, allocations: 1.485 MB / 461.5 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.3254, allocations: 0 / 461.5 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003357/0.3258, allocations: 75.95 kB / 461.6 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001996/0.326, allocations: 56.81 kB / 461.6 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.747e-05/0.326, allocations: 8 kB / 461.7 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001627/0.3276, allocations: 1.617 MB / 463.3 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.3276, allocations: 3.938 kB / 463.3 MB, free: 5.441 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00152/0.3292, allocations: 0.7983 MB / 464.1 MB, free: 4.617 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006705/0.3298, allocations: 262.9 kB / 464.3 MB, free: 4.359 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001247/0.33, allocations: 15.98 kB / 464.3 MB, free: 4.344 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004491/0.3304, allocations: 47.95 kB / 464.4 MB, free: 4.297 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.293e-05/0.3305, allocations: 24.05 kB / 464.4 MB, free: 4.273 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.973e-05/0.3305, allocations: 15.98 kB / 464.4 MB, free: 4.258 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002196/0.3327, allocations: 1.608 MB / 466 MB, free: 2.652 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3327, allocations: 0 / 466 MB, free: 2.652 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007495/0.3335, allocations: 211.6 kB / 466.2 MB, free: 2.445 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.003597/0.3371, allocations: 1.754 MB / 468 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001077/0.3381, allocations: 494.9 kB / 468.5 MB, free: 392 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/0.3381, allocations: 12.09 kB / 468.5 MB, free: 380 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005201/0.3387, allocations: 294.5 kB / 468.8 MB, free: 72 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001101/0.3398, allocations: 205 kB / 469 MB, free: 15.87 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02186/0.3616, allocations: 13.91 MB / 482.9 MB, free: 1.719 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007716/0.3624, allocations: 0.6682 MB / 483.6 MB, free: 1.023 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005356/0.3629, allocations: 223.8 kB / 483.8 MB, free: 0.8008 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006635/0.3636, allocations: 479.3 kB / 484.2 MB, free: 340 kB / 382.1 MB Notification: Performance of SimCode: time 1.253e-06/0.3636, allocations: 0 / 484.2 MB, free: 340 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1053/0.4689, allocations: 29.87 MB / 0.5021 GB, free: 2.707 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.4/13.87, allocations: 3.984 kB / 0.5021 GB, free: 2.703 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,battery.capacitor[1].v,battery.capacitor[2].v,battery.limIntegrator.y,energy.y Variables in the result:time,battery.capacitor[1].v,battery.capacitor[2].v,battery.limIntegrator.y,energy.y [Calling sys.exit(0), Time elapsed: 16.79552881800919]