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.001817/0.001817, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.00212/0.00212, allocations: 210.7 kB / 24.53 MB, free: 4.07 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.444/1.444, allocations: 230.5 MB / 258.2 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001849/0.001849, allocations: 63.89 kB / 378.6 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2802, allocations: 53.4 MB / 432 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.00646/0.2866, allocations: 4.084 MB / 436 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003565/0.2902, allocations: 2.091 MB / 438.1 MB, free: 484 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003132/0.2905, allocations: 11.94 kB / 438.1 MB, free: 472 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001337/0.2919, allocations: 0.595 MB / 438.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007204/0.2926, allocations: 398 kB / 439.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007346/0.2933, allocations: 290.9 kB / 439.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00118/0.2945, allocations: 0.9858 MB / 440.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004344/0.2949, allocations: 237 kB / 440.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004729/0.2954, allocations: 390.7 kB / 441 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007142/0.2961, allocations: 0.5099 MB / 441.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001136/0.2962, allocations: 80 kB / 441.6 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002851/0.2965, allocations: 136 kB / 441.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004053/0.2969, allocations: 478.6 kB / 442.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006038/0.2975, allocations: 0.629 MB / 442.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002107/0.2996, allocations: 1.77 MB / 444.6 MB, free: 9.988 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.176e-05/0.2996, allocations: 3.984 kB / 444.6 MB, free: 9.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.2996, allocations: 4 kB / 444.6 MB, free: 9.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.253e-05/0.2997, allocations: 4 kB / 444.6 MB, free: 9.977 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.003283/0.3029, allocations: 1.792 MB / 446.4 MB, free: 8.141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.303, allocations: 12.03 kB / 446.4 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.792e-05/0.303, allocations: 13.19 kB / 446.4 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000113/0.3031, allocations: 94.64 kB / 446.5 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002479/0.3034, allocations: 171.9 kB / 446.7 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001892/0.3053, allocations: 1.126 MB / 447.8 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001943/0.3055, allocations: 178.1 kB / 448 MB, free: 6.484 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.962e-05/0.3056, allocations: 56.08 kB / 448 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.3068, allocations: 0.6635 MB / 448.7 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/0.3068, allocations: 0 / 448.7 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.164e-05/0.3068, allocations: 31.92 kB / 448.7 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.3069, allocations: 12 kB / 448.7 MB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008308/0.3077, allocations: 435.7 kB / 449.2 MB, free: 5.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004649/0.3123, allocations: 2.82 MB / 452 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009703/0.3133, allocations: 398.5 kB / 452.4 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006605/0.314, allocations: 291.7 kB / 452.7 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.314, allocations: 4 kB / 452.7 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.011e-05/0.314, allocations: 46.55 kB / 452.7 MB, free: 1.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.094e-06/0.314, allocations: 0 / 452.7 MB, free: 1.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001905/0.3159, allocations: 0.6937 MB / 453.4 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001682/0.3161, allocations: 273 kB / 453.7 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00289/0.319, allocations: 2.242 MB / 455.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.592e-05/0.3191, allocations: 33.7 kB / 456 MB, free: 14.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000596/0.3196, allocations: 0.6435 MB / 456.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.3198, allocations: 115.1 kB / 456.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.3199, allocations: 82.02 kB / 456.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.32, allocations: 321.9 kB / 457.1 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003456/0.3204, allocations: 160.6 kB / 457.3 MB, free: 12.94 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004757/0.3209, allocations: 300.6 kB / 457.6 MB, free: 12.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007255/0.3216, allocations: 396.7 kB / 457.9 MB, free: 12.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.3216, allocations: 7.875 kB / 457.9 MB, free: 12.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001521/0.3231, allocations: 0.6415 MB / 458.6 MB, free: 11.51 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.3231, allocations: 6.656 kB / 458.6 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.3231, allocations: 4 kB / 458.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003333/0.3235, allocations: 68.69 kB / 458.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003887/0.3239, allocations: 100 kB / 458.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001922/0.3258, allocations: 1.66 MB / 460.4 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004851/0.3263, allocations: 55.75 kB / 460.5 MB, free: 9.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/0.3263, allocations: 16 kB / 460.5 MB, free: 9.492 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.0006894/0.327, allocations: 489.6 kB / 461 MB, free: 9.004 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000202/0.3272, allocations: 143.1 kB / 461.1 MB, free: 8.863 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002168/0.3274, allocations: 161.6 kB / 461.3 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.3274, allocations: 11.88 kB / 461.3 MB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.3274, allocations: 0 / 461.3 MB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.3274, allocations: 3.984 kB / 461.3 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002925/0.3304, allocations: 1.629 MB / 462.9 MB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.3304, allocations: 0 / 462.9 MB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003308/0.3307, allocations: 67.95 kB / 463 MB, free: 6.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001986/0.3309, allocations: 72.73 kB / 463.1 MB, free: 6.844 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.647e-05/0.3309, allocations: 12.12 kB / 463.1 MB, free: 6.832 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001585/0.3325, allocations: 1.613 MB / 464.7 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.3325, allocations: 0 / 464.7 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00147/0.334, allocations: 0.8027 MB / 465.5 MB, free: 4.277 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005618/0.3345, allocations: 266.9 kB / 465.7 MB, free: 4.016 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.3347, allocations: 11.98 kB / 465.8 MB, free: 4.004 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004611/0.3351, allocations: 51.95 kB / 465.8 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.405e-05/0.3352, allocations: 27.95 kB / 465.8 MB, free: 3.926 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.161e-05/0.3352, allocations: 4 kB / 465.8 MB, free: 3.922 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002108/0.3373, allocations: 1.612 MB / 467.4 MB, free: 2.312 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3373, allocations: 0 / 467.4 MB, free: 2.312 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007428/0.3381, allocations: 203.7 kB / 467.6 MB, free: 2.113 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.003493/0.3416, allocations: 1.717 MB / 469.4 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001084/0.3426, allocations: 494.6 kB / 469.8 MB, free: 32 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.3427, allocations: 3.906 kB / 469.8 MB, free: 28 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005583/0.3432, allocations: 302.9 kB / 470.1 MB, free: 15.72 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009688/0.3442, allocations: 218.7 kB / 470.4 MB, free: 15.51 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02124/0.3654, allocations: 13.91 MB / 484.3 MB, free: 1.359 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/0.3665, allocations: 1.256 MB / 485.5 MB, free: 80 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006004/0.3671, allocations: 215.8 kB / 485.7 MB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006228/0.3677, allocations: 487.3 kB / 486.2 MB, free: 15.39 MB / 398.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3677, allocations: 0 / 486.2 MB, free: 15.39 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06923/0.4369, allocations: 28.44 MB / 0.5026 GB, free: 3.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.89/15.33, allocations: 6.031 kB / 0.5026 GB, free: 3.066 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 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.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_trunk_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.828065834997687]