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: 111.1 kB / 20.44 MB, free: 1.176 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.001462/0.001462, allocations: 203.7 kB / 23.73 MB, free: 4.379 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.407/1.407, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001491/0.001491, allocations: 51.92 kB / 377.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2476, allocations: 53.37 MB / 431.1 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005729/0.2533, allocations: 3.711 MB / 434.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003395/0.2567, allocations: 1.944 MB / 436.7 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003296/0.257, allocations: 15.88 kB / 436.7 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001382/0.2584, allocations: 0.5681 MB / 437.3 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007333/0.2591, allocations: 390.1 kB / 437.7 MB, free: 148 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000661/0.2598, allocations: 298.4 kB / 438 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001194/0.261, allocations: 0.9819 MB / 439 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004155/0.2614, allocations: 229 kB / 439.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005133/0.2619, allocations: 402.7 kB / 439.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000636/0.2625, allocations: 0.5061 MB / 440.1 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001113/0.2627, allocations: 80 kB / 440.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002527/0.2629, allocations: 136 kB / 440.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003955/0.2633, allocations: 482.6 kB / 440.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005081/0.2638, allocations: 497 kB / 441.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001844/0.2657, allocations: 1.782 MB / 443 MB, free: 10.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.2657, allocations: 8 kB / 443 MB, free: 10.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2657, allocations: 0 / 443 MB, free: 10.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.575e-05/0.2657, allocations: 0 / 443 MB, free: 10.77 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.003322/0.269, allocations: 1.792 MB / 444.8 MB, free: 8.938 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.2691, allocations: 8.031 kB / 444.8 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001376/0.2692, allocations: 102.6 kB / 444.9 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002592/0.2694, allocations: 167.9 kB / 445.1 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002048/0.2715, allocations: 1.134 MB / 446.2 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002294/0.2717, allocations: 173.8 kB / 446.4 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.151e-05/0.2718, allocations: 51.95 kB / 446.5 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001483/0.2733, allocations: 1.015 MB / 447.5 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.2733, allocations: 4 kB / 447.5 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.553e-05/0.2734, allocations: 20 kB / 447.5 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.799e-05/0.2734, allocations: 12 kB / 447.5 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008012/0.2742, allocations: 431.7 kB / 447.9 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004559/0.2788, allocations: 2.606 MB / 450.5 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001/0.2798, allocations: 399.2 kB / 450.9 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006265/0.2804, allocations: 288.7 kB / 451.2 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.409e-05/0.2804, allocations: 4 kB / 451.2 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/0.2804, allocations: 38.56 kB / 451.2 MB, free: 2.195 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.074e-06/0.2804, allocations: 4 kB / 451.3 MB, free: 2.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001886/0.2823, allocations: 0.7008 MB / 452 MB, free: 1.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001697/0.2825, allocations: 273 kB / 452.2 MB, free: 1.152 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00306/0.2856, allocations: 2.246 MB / 454.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.638e-05/0.2856, allocations: 33.7 kB / 454.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006608/0.2863, allocations: 0.6435 MB / 455.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.2864, allocations: 118.9 kB / 455.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001495/0.2865, allocations: 78.06 kB / 455.3 MB, free: 14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.2867, allocations: 321.9 kB / 455.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003461/0.287, allocations: 164.6 kB / 455.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005542/0.2876, allocations: 0.4982 MB / 456.3 MB, free: 12.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006825/0.2883, allocations: 397.3 kB / 456.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.2883, allocations: 0 / 456.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001394/0.2897, allocations: 0.6453 MB / 457.3 MB, free: 11.85 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.2897, allocations: 7.938 kB / 457.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.2897, allocations: 4 kB / 457.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003012/0.29, allocations: 68.75 kB / 457.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003897/0.2904, allocations: 96 kB / 457.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001761/0.2921, allocations: 1.644 MB / 459.2 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004592/0.2926, allocations: 67.7 kB / 459.2 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.078e-05/0.2926, allocations: 12.12 kB / 459.2 MB, free: 9.836 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.0006256/0.2933, allocations: 489.5 kB / 459.7 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001887/0.2934, allocations: 147.1 kB / 459.9 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002266/0.2937, allocations: 169.5 kB / 460 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.2937, allocations: 4 kB / 460 MB, free: 9.027 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2937, allocations: 0 / 460 MB, free: 9.027 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.2937, allocations: 0 / 460 MB, free: 9.027 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002745/0.2964, allocations: 1.493 MB / 461.5 MB, free: 7.469 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.2964, allocations: 4 kB / 461.5 MB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003395/0.2968, allocations: 67.95 kB / 461.6 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000181/0.297, allocations: 64.81 kB / 461.7 MB, free: 7.332 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.56e-05/0.297, allocations: 4 kB / 461.7 MB, free: 7.328 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001612/0.2986, allocations: 1.613 MB / 463.3 MB, free: 5.598 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.2986, allocations: 4.031 kB / 463.3 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001481/0.3001, allocations: 0.802 MB / 464.1 MB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006873/0.3008, allocations: 255 kB / 464.3 MB, free: 4.516 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001264/0.3009, allocations: 16.12 kB / 464.3 MB, free: 4.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004623/0.3014, allocations: 47.95 kB / 464.4 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.3015, allocations: 31.94 kB / 464.4 MB, free: 4.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.546e-05/0.3015, allocations: 12.09 kB / 464.4 MB, free: 4.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002142/0.3036, allocations: 1.608 MB / 466 MB, free: 2.805 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3036, allocations: 0 / 466 MB, free: 2.805 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007125/0.3043, allocations: 203.7 kB / 466.2 MB, free: 2.605 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.003565/0.3079, allocations: 1.753 MB / 468 MB, free: 1.035 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001054/0.309, allocations: 0.4908 MB / 468.5 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.309, allocations: 3.906 kB / 468.5 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005461/0.3095, allocations: 299.1 kB / 468.8 MB, free: 228 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009432/0.3105, allocations: 213.1 kB / 469 MB, free: 20 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0199/0.3304, allocations: 13.91 MB / 482.9 MB, free: 1.859 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008025/0.3312, allocations: 0.6604 MB / 483.6 MB, free: 1.172 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005324/0.3317, allocations: 215.8 kB / 483.8 MB, free: 0.957 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006277/0.3323, allocations: 483.3 kB / 484.2 MB, free: 496 kB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3323, allocations: 4 kB / 484.2 MB, free: 492 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1087/0.441, allocations: 29.87 MB / 0.5021 GB, free: 2.852 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.4/13.85, allocations: 4.062 kB / 0.5021 GB, free: 2.848 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 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.mat","/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] Reference file matches [Calling sys.exit(0), Time elapsed: 17.25789022698882]