Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001441/0.001441, allocations: 112.5 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002142/0.002142, allocations: 212.3 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] 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.CCCVcharging,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002537/0.002537, allocations: 67.88 kB / 377.8 MB, free: 3.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.2741, allocations: 53.41 MB / 431.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006163/0.2802, allocations: 4.073 MB / 435.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003864/0.2841, allocations: 2.103 MB / 437.3 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004786/0.2846, allocations: 11.94 kB / 437.4 MB, free: 492 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00144/0.286, allocations: 0.5875 MB / 437.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007674/0.2868, allocations: 390.1 kB / 438.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000704/0.2875, allocations: 298.7 kB / 438.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001203/0.2887, allocations: 0.9897 MB / 439.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004054/0.2891, allocations: 225 kB / 439.8 MB, free: 14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004847/0.2896, allocations: 398.7 kB / 440.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006535/0.2902, allocations: 0.5178 MB / 440.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001473/0.2904, allocations: 76 kB / 440.8 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002637/0.2906, allocations: 136 kB / 440.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003935/0.291, allocations: 478.6 kB / 441.4 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000587/0.2916, allocations: 0.6368 MB / 442 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001947/0.2936, allocations: 1.766 MB / 443.8 MB, free: 10 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2936, allocations: 0 / 443.8 MB, free: 10 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2936, allocations: 0 / 443.8 MB, free: 10 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.088e-05/0.2936, allocations: 0 / 443.8 MB, free: 10 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.003193/0.2968, allocations: 1.796 MB / 445.6 MB, free: 8.164 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.2968, allocations: 12.03 kB / 445.6 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001127/0.2969, allocations: 90.7 kB / 445.7 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002544/0.2972, allocations: 167.9 kB / 445.9 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001894/0.2991, allocations: 1.138 MB / 447 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001689/0.2993, allocations: 174 kB / 447.2 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.044e-05/0.2993, allocations: 52.33 kB / 447.2 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.3005, allocations: 0.6673 MB / 447.9 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.3005, allocations: 0 / 447.9 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.682e-05/0.3006, allocations: 24 kB / 447.9 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.3006, allocations: 12 kB / 447.9 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008469/0.3014, allocations: 435.7 kB / 448.4 MB, free: 5.293 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00445/0.3059, allocations: 2.82 MB / 451.2 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009694/0.3069, allocations: 398.5 kB / 451.6 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006385/0.3075, allocations: 295.7 kB / 451.9 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.852e-05/0.3075, allocations: 4 kB / 451.9 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.3076, allocations: 42.56 kB / 451.9 MB, free: 1.633 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.064e-06/0.3076, allocations: 0 / 451.9 MB, free: 1.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001888/0.3094, allocations: 0.6976 MB / 452.6 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001882/0.3096, allocations: 273 kB / 452.9 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002927/0.3126, allocations: 2.246 MB / 455.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.361e-05/0.3126, allocations: 33.7 kB / 455.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006671/0.3133, allocations: 0.6396 MB / 455.8 MB, free: 13.65 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.3134, allocations: 118.9 kB / 455.9 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/0.3135, allocations: 74.03 kB / 456 MB, free: 13.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3137, allocations: 326 kB / 456.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003457/0.314, allocations: 160.7 kB / 456.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000473/0.3145, allocations: 308.5 kB / 456.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007236/0.3152, allocations: 396.6 kB / 457.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3152, allocations: 0 / 457.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001384/0.3166, allocations: 0.6492 MB / 457.8 MB, free: 11.54 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.3166, allocations: 6.656 kB / 457.8 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.3166, allocations: 4 kB / 457.8 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003184/0.317, allocations: 68.88 kB / 457.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003774/0.3173, allocations: 91.81 kB / 458 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001887/0.3192, allocations: 1.671 MB / 459.6 MB, free: 9.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004906/0.3197, allocations: 55.73 kB / 459.7 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.931e-05/0.3198, allocations: 16 kB / 459.7 MB, free: 9.52 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.0007761/0.3205, allocations: 489.5 kB / 460.2 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002065/0.3207, allocations: 143.1 kB / 460.3 MB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002477/0.321, allocations: 161.7 kB / 460.5 MB, free: 8.727 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.321, allocations: 8 kB / 460.5 MB, free: 8.719 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.321, allocations: 4 kB / 460.5 MB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.321, allocations: 4 kB / 460.5 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00297/0.324, allocations: 1.629 MB / 462.1 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.324, allocations: 4 kB / 462.1 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003369/0.3243, allocations: 68.02 kB / 462.2 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001946/0.3245, allocations: 56.81 kB / 462.2 MB, free: 6.887 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/0.3245, allocations: 4 kB / 462.2 MB, free: 6.883 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001723/0.3262, allocations: 1.632 MB / 463.9 MB, free: 5.133 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3263, allocations: 0 / 463.9 MB, free: 5.133 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001487/0.3277, allocations: 0.7943 MB / 464.7 MB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006399/0.3284, allocations: 270.9 kB / 464.9 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.3285, allocations: 8 kB / 464.9 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004588/0.329, allocations: 48.08 kB / 465 MB, free: 3.992 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.382e-05/0.329, allocations: 31.94 kB / 465 MB, free: 3.961 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.436e-05/0.3291, allocations: 12 kB / 465 MB, free: 3.949 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002307/0.3314, allocations: 1.612 MB / 466.6 MB, free: 2.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3314, allocations: 0 / 466.6 MB, free: 2.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007543/0.3321, allocations: 207.7 kB / 466.9 MB, free: 2.137 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.003544/0.3357, allocations: 1.711 MB / 468.6 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001181/0.3369, allocations: 490.9 kB / 469 MB, free: 68 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.3369, allocations: 7.969 kB / 469.1 MB, free: 60 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005835/0.3374, allocations: 302.4 kB / 469.3 MB, free: 15.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.3385, allocations: 212 kB / 469.6 MB, free: 15.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02096/0.3594, allocations: 13.91 MB / 483.5 MB, free: 1.387 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001017/0.3604, allocations: 1.26 MB / 484.7 MB, free: 104 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005247/0.361, allocations: 211.8 kB / 484.9 MB, free: 15.89 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006192/0.3616, allocations: 479.3 kB / 485.4 MB, free: 15.42 MB / 398.1 MB Notification: Performance of SimCode: time 1.874e-06/0.3616, allocations: 0 / 485.4 MB, free: 15.42 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07489/0.4365, allocations: 28.41 MB / 0.5018 GB, free: 3.137 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.94/15.37, allocations: 6.344 kB / 0.5018 GB, free: 3.133 MB / 414.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 18.297221198001353]