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.001285/0.001285, allocations: 112.5 kB / 21.22 MB, free: 0.75 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.001453/0.001453, allocations: 205.2 kB / 24.52 MB, free: 4.156 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 / 258.3 MB, free: 8 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 47.92 kB / 378.6 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2559, allocations: 53.36 MB / 431.9 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005871/0.2617, allocations: 4.077 MB / 436 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003393/0.2651, allocations: 2.1 MB / 438.1 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003238/0.2655, allocations: 11.94 kB / 438.1 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001217/0.2667, allocations: 0.5909 MB / 438.7 MB, free: 76 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006783/0.2674, allocations: 398 kB / 439.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006079/0.268, allocations: 295.2 kB / 439.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001141/0.2691, allocations: 0.9858 MB / 440.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004007/0.2695, allocations: 233 kB / 440.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004589/0.27, allocations: 390.7 kB / 441 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00066/0.2706, allocations: 0.5139 MB / 441.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.2707, allocations: 76 kB / 441.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002698/0.271, allocations: 136 kB / 441.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000438/0.2715, allocations: 482.6 kB / 442.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005976/0.272, allocations: 0.6251 MB / 442.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001838/0.2739, allocations: 1.774 MB / 444.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.2739, allocations: 7.984 kB / 444.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2739, allocations: 0 / 444.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.573e-05/0.2739, allocations: 0 / 444.6 MB, free: 10.18 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.002909/0.2768, allocations: 1.792 MB / 446.4 MB, free: 8.348 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.2769, allocations: 12.03 kB / 446.4 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.68e-05/0.2769, allocations: 21.17 kB / 446.4 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001046/0.277, allocations: 90.7 kB / 446.5 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002351/0.2772, allocations: 167.9 kB / 446.6 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00174/0.279, allocations: 1.126 MB / 447.8 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001725/0.2791, allocations: 185.6 kB / 447.9 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.456e-05/0.2792, allocations: 55.89 kB / 448 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.2803, allocations: 0.6596 MB / 448.7 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.2803, allocations: 0 / 448.7 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.627e-05/0.2804, allocations: 24 kB / 448.7 MB, free: 5.902 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.2804, allocations: 15.98 kB / 448.7 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000785/0.2812, allocations: 439.7 kB / 449.1 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004381/0.2856, allocations: 2.82 MB / 451.9 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.2866, allocations: 395.3 kB / 452.3 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006614/0.2873, allocations: 294.3 kB / 452.6 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.661e-05/0.2873, allocations: 4 kB / 452.6 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.595e-05/0.2873, allocations: 42.55 kB / 452.7 MB, free: 1.797 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.655e-06/0.2873, allocations: 0 / 452.7 MB, free: 1.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001925/0.2893, allocations: 0.693 MB / 453.4 MB, free: 1.094 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002389/0.2895, allocations: 269 kB / 453.6 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002913/0.2924, allocations: 2.243 MB / 455.9 MB, free: 14.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.583e-05/0.2925, allocations: 41.64 kB / 455.9 MB, free: 14.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006496/0.2931, allocations: 0.6435 MB / 456.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.2932, allocations: 111 kB / 456.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001562/0.2934, allocations: 82.02 kB / 456.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.2935, allocations: 325.8 kB / 457.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003403/0.2938, allocations: 160.6 kB / 457.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004623/0.2943, allocations: 304.6 kB / 457.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006997/0.295, allocations: 393.3 kB / 457.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.295, allocations: 0 / 457.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001323/0.2963, allocations: 0.6492 MB / 458.5 MB, free: 11.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.2964, allocations: 7.938 kB / 458.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.2964, allocations: 4 kB / 458.6 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003009/0.2967, allocations: 64.94 kB / 458.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000381/0.297, allocations: 99.81 kB / 458.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001882/0.2989, allocations: 1.66 MB / 460.4 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004901/0.2994, allocations: 59.84 kB / 460.4 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.219e-05/0.2994, allocations: 16 kB / 460.5 MB, free: 9.691 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.0007528/0.3002, allocations: 489.5 kB / 460.9 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002256/0.3004, allocations: 147 kB / 461.1 MB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002375/0.3007, allocations: 161.6 kB / 461.2 MB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.3007, allocations: 4 kB / 461.2 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3007, allocations: 0 / 461.2 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.3007, allocations: 3.984 kB / 461.2 MB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002916/0.3036, allocations: 1.63 MB / 462.9 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.3036, allocations: 0 / 462.9 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003371/0.3039, allocations: 67.95 kB / 462.9 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002006/0.3041, allocations: 68.86 kB / 463 MB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.894e-05/0.3042, allocations: 12.06 kB / 463 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001633/0.3058, allocations: 1.621 MB / 464.6 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3058, allocations: 3.938 kB / 464.6 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00158/0.3074, allocations: 0.803 MB / 465.4 MB, free: 4.473 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000579/0.308, allocations: 259 kB / 465.7 MB, free: 4.219 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/0.3081, allocations: 8 kB / 465.7 MB, free: 4.211 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004516/0.3085, allocations: 55.94 kB / 465.8 MB, free: 4.156 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.176e-05/0.3086, allocations: 27.95 kB / 465.8 MB, free: 4.129 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.448e-05/0.3086, allocations: 8 kB / 465.8 MB, free: 4.121 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002482/0.3111, allocations: 1.608 MB / 467.4 MB, free: 2.516 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3111, allocations: 0 / 467.4 MB, free: 2.516 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007413/0.3119, allocations: 211.6 kB / 467.6 MB, free: 2.309 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.003449/0.3153, allocations: 1.716 MB / 469.3 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001095/0.3164, allocations: 498.6 kB / 469.8 MB, free: 252 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.3164, allocations: 3.906 kB / 469.8 MB, free: 248 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000559/0.317, allocations: 307.1 kB / 470.1 MB, free: 15.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009213/0.3179, allocations: 210.9 kB / 470.3 MB, free: 15.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02197/0.3399, allocations: 13.91 MB / 484.2 MB, free: 1.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001161/0.341, allocations: 1.26 MB / 485.5 MB, free: 292 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005705/0.3416, allocations: 223.8 kB / 485.7 MB, free: 64 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006876/0.3423, allocations: 479.4 kB / 486.2 MB, free: 15.59 MB / 398.1 MB Notification: Performance of SimCode: time 1.443e-06/0.3423, allocations: 0 / 486.2 MB, free: 15.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07063/0.4129, allocations: 28.43 MB / 0.5025 GB, free: 3.359 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.66/15.07, allocations: 18.66 kB / 0.5026 GB, free: 3.348 MB / 414.1 MB " [Timeout remaining time 645] (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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 19.333368273975793]