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.001395/0.001395, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001418/0.001418, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.39/1.39, allocations: 230.6 MB / 258.3 MB, free: 7.746 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.001485/0.001485, allocations: 59.89 kB / 378.5 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.2925, allocations: 53.35 MB / 431.8 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006155/0.2986, allocations: 3.707 MB / 435.6 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003548/0.3022, allocations: 1.94 MB / 437.5 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005091/0.3027, allocations: 11.94 kB / 437.5 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001345/0.304, allocations: 0.5719 MB / 438.1 MB, free: 420 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007937/0.3048, allocations: 398.1 kB / 438.5 MB, free: 20 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006853/0.3055, allocations: 286.6 kB / 438.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001699/0.3072, allocations: 0.9859 MB / 439.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005696/0.3078, allocations: 225 kB / 439.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006371/0.3084, allocations: 406.6 kB / 440.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009707/0.3094, allocations: 0.5061 MB / 440.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001763/0.3096, allocations: 80 kB / 440.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000387/0.31, allocations: 136 kB / 441.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006194/0.3106, allocations: 482.6 kB / 441.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007866/0.3114, allocations: 489.1 kB / 442 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003001/0.3144, allocations: 1.782 MB / 443.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.161e-05/0.3144, allocations: 4 kB / 443.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3144, allocations: 0 / 443.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.374e-05/0.3144, allocations: 4 kB / 443.8 MB, free: 10.66 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.004872/0.3193, allocations: 1.792 MB / 445.6 MB, free: 8.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.357e-05/0.3193, allocations: 12.02 kB / 445.6 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.466e-05/0.3194, allocations: 21.19 kB / 445.6 MB, free: 8.797 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001683/0.3196, allocations: 90.66 kB / 445.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004484/0.32, allocations: 171.8 kB / 445.9 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002835/0.3228, allocations: 1.134 MB / 447 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002409/0.3231, allocations: 177.6 kB / 447.2 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001323/0.3232, allocations: 51.95 kB / 447.2 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002033/0.3252, allocations: 1.011 MB / 448.3 MB, free: 5.969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.3253, allocations: 4 kB / 448.3 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.604e-05/0.3254, allocations: 24 kB / 448.3 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.519e-05/0.3254, allocations: 12 kB / 448.3 MB, free: 5.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001283/0.3267, allocations: 431.7 kB / 448.7 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006229/0.3329, allocations: 2.61 MB / 451.3 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0015/0.3344, allocations: 401.8 kB / 451.7 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008958/0.3353, allocations: 284.7 kB / 452 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.988e-05/0.3353, allocations: 4 kB / 452 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.392e-05/0.3354, allocations: 38.56 kB / 452 MB, free: 2.066 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 3.366e-06/0.3354, allocations: 0 / 452 MB, free: 2.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002518/0.3379, allocations: 0.7124 MB / 452.7 MB, free: 1.344 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001642/0.338, allocations: 269 kB / 453 MB, free: 1.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002895/0.3409, allocations: 2.242 MB / 455.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.555e-05/0.341, allocations: 33.7 kB / 455.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005813/0.3416, allocations: 0.6474 MB / 455.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.489e-05/0.3417, allocations: 107.1 kB / 456 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.3418, allocations: 82.02 kB / 456.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.3419, allocations: 321.9 kB / 456.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003418/0.3423, allocations: 168.6 kB / 456.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005443/0.3428, allocations: 0.4904 MB / 457.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007381/0.3436, allocations: 401.3 kB / 457.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.3436, allocations: 0 / 457.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001373/0.3449, allocations: 0.6453 MB / 458.1 MB, free: 11.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.482e-05/0.345, allocations: 11.94 kB / 458.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.345, allocations: 4 kB / 458.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003182/0.3453, allocations: 64.75 kB / 458.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003921/0.3457, allocations: 92.02 kB / 458.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001959/0.3477, allocations: 1.66 MB / 460 MB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000533/0.3482, allocations: 51.86 kB / 460 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.144e-05/0.3482, allocations: 16 kB / 460 MB, free: 9.711 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.0007549/0.349, allocations: 491.8 kB / 460.5 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002015/0.3492, allocations: 147 kB / 460.6 MB, free: 9.078 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002182/0.3494, allocations: 169.6 kB / 460.8 MB, free: 8.902 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.3494, allocations: 4 kB / 460.8 MB, free: 8.898 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.3494, allocations: 3.938 kB / 460.8 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.3494, allocations: 3.984 kB / 460.8 MB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002609/0.352, allocations: 1.493 MB / 462.3 MB, free: 7.332 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.352, allocations: 0 / 462.3 MB, free: 7.332 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003307/0.3523, allocations: 67.95 kB / 462.4 MB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001967/0.3525, allocations: 60.75 kB / 462.4 MB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.888e-05/0.3526, allocations: 16 kB / 462.5 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001601/0.3542, allocations: 1.605 MB / 464.1 MB, free: 5.469 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.3542, allocations: 0 / 464.1 MB, free: 5.469 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001465/0.3556, allocations: 0.8107 MB / 464.9 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004934/0.3561, allocations: 259 kB / 465.1 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001239/0.3563, allocations: 16.11 kB / 465.1 MB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004569/0.3567, allocations: 47.95 kB / 465.2 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.106e-05/0.3568, allocations: 27.95 kB / 465.2 MB, free: 4.289 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.361e-05/0.3568, allocations: 15.94 kB / 465.2 MB, free: 4.273 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002105/0.3589, allocations: 1.608 MB / 466.8 MB, free: 2.668 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3589, allocations: 0 / 466.8 MB, free: 2.668 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007362/0.3597, allocations: 203.7 kB / 467 MB, free: 2.469 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.003492/0.3632, allocations: 1.76 MB / 468.8 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00107/0.3642, allocations: 494.8 kB / 469.3 MB, free: 408 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/0.3642, allocations: 3.906 kB / 469.3 MB, free: 404 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005247/0.3648, allocations: 302.8 kB / 469.6 MB, free: 88 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009704/0.3657, allocations: 206.8 kB / 469.8 MB, free: 15.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02034/0.3861, allocations: 13.9 MB / 483.7 MB, free: 1.734 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007624/0.3868, allocations: 0.6604 MB / 484.3 MB, free: 1.047 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000531/0.3874, allocations: 219.8 kB / 484.6 MB, free: 0.8281 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006307/0.388, allocations: 475.3 kB / 485 MB, free: 372 kB / 382.1 MB Notification: Performance of SimCode: time 1.001e-06/0.388, allocations: 4 kB / 485 MB, free: 368 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06768/0.4557, allocations: 29.32 MB / 0.5023 GB, free: 3.293 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.88/15.34, allocations: 9.688 kB / 0.5023 GB, free: 3.289 MB / 414.1 MB " [Timeout remaining time 644] (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.557986200088635]