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.001303/0.001303, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001523/0.001523, allocations: 213 kB / 23.73 MB, free: 4.164 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.475/1.475, allocations: 230.5 MB / 257.4 MB, free: 7.797 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.002166/0.002166, allocations: 59.91 kB / 377.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.2449, allocations: 53.41 MB / 431.1 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.007127/0.2521, allocations: 3.702 MB / 434.8 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003705/0.2558, allocations: 1.944 MB / 436.8 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003406/0.2561, allocations: 15.88 kB / 436.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001285/0.2574, allocations: 0.5636 MB / 437.4 MB, free: 228 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007563/0.2582, allocations: 398 kB / 437.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006447/0.2588, allocations: 298.9 kB / 438 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001102/0.2599, allocations: 0.9897 MB / 439 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003903/0.2603, allocations: 213 kB / 439.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004674/0.2608, allocations: 398.7 kB / 439.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005888/0.2614, allocations: 494.2 kB / 440.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001189/0.2615, allocations: 80 kB / 440.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002557/0.2617, allocations: 136 kB / 440.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003855/0.2621, allocations: 486.6 kB / 440.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004622/0.2626, allocations: 493 kB / 441.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001715/0.2643, allocations: 1.782 MB / 443.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2643, allocations: 0 / 443.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2643, allocations: 0 / 443.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.623e-05/0.2643, allocations: 0 / 443.1 MB, free: 10.5 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.003054/0.2674, allocations: 1.796 MB / 444.8 MB, free: 8.664 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.2674, allocations: 11.98 kB / 444.9 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001236/0.2675, allocations: 98.7 kB / 445 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002483/0.2678, allocations: 171.9 kB / 445.1 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00193/0.2697, allocations: 1.13 MB / 446.3 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001582/0.2699, allocations: 170.1 kB / 446.4 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.262e-05/0.27, allocations: 56.33 kB / 446.5 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001345/0.2713, allocations: 1.023 MB / 447.5 MB, free: 5.812 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.2713, allocations: 0 / 447.5 MB, free: 5.812 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.294e-05/0.2714, allocations: 20 kB / 447.5 MB, free: 5.793 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/0.2714, allocations: 12 kB / 447.5 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007924/0.2722, allocations: 431.7 kB / 448 MB, free: 5.355 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004362/0.2765, allocations: 2.61 MB / 450.6 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009454/0.2775, allocations: 401.2 kB / 451 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000632/0.2781, allocations: 291.7 kB / 451.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.2781, allocations: 0 / 451.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/0.2782, allocations: 38.56 kB / 451.3 MB, free: 1.918 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.493e-06/0.2782, allocations: 0 / 451.3 MB, free: 1.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001808/0.28, allocations: 0.6976 MB / 452 MB, free: 1.211 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001507/0.2801, allocations: 277 kB / 452.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002804/0.2829, allocations: 2.243 MB / 454.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.86e-05/0.283, allocations: 33.7 kB / 454.5 MB, free: 14.58 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006288/0.2836, allocations: 0.6512 MB / 455.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.2837, allocations: 111 kB / 455.3 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/0.2838, allocations: 78.06 kB / 455.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.284, allocations: 322 kB / 455.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003436/0.2843, allocations: 160.6 kB / 455.8 MB, free: 13.26 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006031/0.2849, allocations: 0.5021 MB / 456.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007235/0.2857, allocations: 396.6 kB / 456.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.2857, allocations: 8 kB / 456.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001374/0.2871, allocations: 0.6414 MB / 457.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.2871, allocations: 8 kB / 457.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.2871, allocations: 3.984 kB / 457.4 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002882/0.2874, allocations: 68.89 kB / 457.4 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003708/0.2877, allocations: 91.88 kB / 457.5 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001881/0.2896, allocations: 1.66 MB / 459.2 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004724/0.2901, allocations: 63.67 kB / 459.3 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.77e-05/0.2901, allocations: 12 kB / 459.3 MB, free: 9.555 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.0006574/0.2908, allocations: 489.5 kB / 459.7 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002064/0.291, allocations: 143.1 kB / 459.9 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002113/0.2912, allocations: 161.6 kB / 460 MB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.2912, allocations: 8.031 kB / 460.1 MB, free: 8.754 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.2912, allocations: 7.938 kB / 460.1 MB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.2912, allocations: 0 / 460.1 MB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002806/0.294, allocations: 1.493 MB / 461.6 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.294, allocations: 0 / 461.6 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003266/0.2943, allocations: 71.89 kB / 461.6 MB, free: 7.117 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001838/0.2945, allocations: 60.88 kB / 461.7 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.646e-05/0.2946, allocations: 8 kB / 461.7 MB, free: 7.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001634/0.2962, allocations: 1.613 MB / 463.3 MB, free: 5.316 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.2962, allocations: 0 / 463.3 MB, free: 5.316 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001525/0.2977, allocations: 0.8026 MB / 464.1 MB, free: 4.488 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006648/0.2984, allocations: 262.9 kB / 464.4 MB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001199/0.2985, allocations: 8 kB / 464.4 MB, free: 4.223 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004659/0.299, allocations: 51.95 kB / 464.4 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.713e-05/0.299, allocations: 27.94 kB / 464.4 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.292e-05/0.2991, allocations: 12 kB / 464.5 MB, free: 4.133 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002182/0.3012, allocations: 1.608 MB / 466.1 MB, free: 2.527 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3012, allocations: 0 / 466.1 MB, free: 2.527 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007514/0.302, allocations: 203.7 kB / 466.3 MB, free: 2.328 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.003594/0.3056, allocations: 1.743 MB / 468 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001059/0.3067, allocations: 498.3 kB / 468.5 MB, free: 240 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.3067, allocations: 3.906 kB / 468.5 MB, free: 236 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005463/0.3072, allocations: 303.1 kB / 468.8 MB, free: 15.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009377/0.3081, allocations: 205.8 kB / 469 MB, free: 15.72 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0205/0.3286, allocations: 13.9 MB / 482.9 MB, free: 1.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007747/0.3294, allocations: 0.6681 MB / 483.6 MB, free: 0.875 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005572/0.33, allocations: 223.8 kB / 483.8 MB, free: 0.6523 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000622/0.3306, allocations: 479.3 kB / 484.3 MB, free: 188 kB / 382.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3306, allocations: 4 kB / 484.3 MB, free: 184 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0985/0.4291, allocations: 29.73 MB / 0.5019 GB, free: 2.594 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.29/14.72, allocations: 6.344 kB / 0.5019 GB, free: 2.59 MB / 414.1 MB " [Timeout remaining time 645] (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] "" 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: 17.82787018502131]