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.001694/0.001694, allocations: 118.7 kB / 18.5 MB, free: 4.602 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.001974/0.001974, allocations: 210.5 kB / 21.46 MB, free: 1.648 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.541/1.541, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.001837/0.001837, allocations: 63.89 kB / 373.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1247, allocations: 53.32 MB / 426.7 MB, free: 4.996 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006396/0.1311, allocations: 4.051 MB / 430.7 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2256/0.3566, allocations: 2.076 MB / 432.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004586/0.3571, allocations: 14 kB / 432.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001427/0.3585, allocations: 0.5903 MB / 433.4 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008034/0.3593, allocations: 395.2 kB / 433.8 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006931/0.36, allocations: 282.4 kB / 434 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001224/0.3612, allocations: 0.9787 MB / 435 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004515/0.3617, allocations: 258.7 kB / 435.3 MB, free: 7.387 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006456/0.3623, allocations: 390.1 kB / 435.7 MB, free: 7.324 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007408/0.3631, allocations: 0.5079 MB / 436.2 MB, free: 7.242 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001294/0.3632, allocations: 78.66 kB / 436.2 MB, free: 7.242 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003339/0.3635, allocations: 146.7 kB / 436.4 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003984/0.3639, allocations: 475.8 kB / 436.8 MB, free: 7.164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005777/0.3645, allocations: 0.6291 MB / 437.5 MB, free: 6.863 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002258/0.3668, allocations: 1.767 MB / 439.2 MB, free: 6.254 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.3668, allocations: 0 / 439.2 MB, free: 6.254 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3668, allocations: 0 / 439.2 MB, free: 6.254 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.309e-05/0.3668, allocations: 3.781 kB / 439.2 MB, free: 6.254 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.004114/0.3709, allocations: 1.874 MB / 441.1 MB, free: 5.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/0.371, allocations: 13.53 kB / 441.1 MB, free: 5.016 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001341/0.3711, allocations: 93.42 kB / 441.2 MB, free: 4.945 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004023/0.3715, allocations: 167.8 kB / 441.4 MB, free: 4.855 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002503/0.374, allocations: 1.192 MB / 442.6 MB, free: 4.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.3741, allocations: 93.2 kB / 442.7 MB, free: 4.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.637e-05/0.3742, allocations: 57.33 kB / 442.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/0.3755, allocations: 0.67 MB / 443.4 MB, free: 3.773 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.3755, allocations: 0.6094 kB / 443.4 MB, free: 3.773 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.072e-05/0.3755, allocations: 23.22 kB / 443.4 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.49e-05/0.3756, allocations: 11.66 kB / 443.4 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008572/0.3764, allocations: 431.7 kB / 443.9 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006207/0.3826, allocations: 2.868 MB / 446.7 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009979/0.3836, allocations: 398.3 kB / 447.1 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006617/0.3843, allocations: 288.2 kB / 447.4 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.252e-05/0.3843, allocations: 9.094 kB / 447.4 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.3843, allocations: 39.84 kB / 447.4 MB, free: 1.805 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.766e-06/0.3843, allocations: 0 / 447.4 MB, free: 1.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.002462/0.3868, allocations: 0.7754 MB / 448.2 MB, free: 1.438 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.3869, allocations: 263.8 kB / 448.5 MB, free: 1.125 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004481/0.3914, allocations: 2.242 MB / 450.7 MB, free: 440 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001114/0.3915, allocations: 36.45 kB / 450.8 MB, free: 400 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000725/0.3922, allocations: 0.6524 MB / 451.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000191/0.3924, allocations: 114.1 kB / 451.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000168/0.3926, allocations: 83.17 kB / 451.6 MB, free: 15.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.3928, allocations: 318.3 kB / 451.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003922/0.3931, allocations: 161.7 kB / 452.1 MB, free: 15.4 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000505/0.3936, allocations: 305.5 kB / 452.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007554/0.3944, allocations: 392.2 kB / 452.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.533e-06/0.3944, allocations: 1.75 kB / 452.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001839/0.3963, allocations: 0.6469 MB / 453.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.3963, allocations: 13 kB / 453.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.3963, allocations: 2.656 kB / 453.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003394/0.3966, allocations: 67.23 kB / 453.5 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003744/0.397, allocations: 93.19 kB / 453.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002107/0.3991, allocations: 1.765 MB / 455.3 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008558/0.4, allocations: 68.66 kB / 455.4 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.486e-05/0.4, allocations: 16.69 kB / 455.4 MB, free: 12.98 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.001242/0.4012, allocations: 478.9 kB / 455.9 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005965/0.4018, allocations: 143.1 kB / 456 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006151/0.4025, allocations: 165.3 kB / 456.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.4025, allocations: 7.75 kB / 456.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.4025, allocations: 0 / 456.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.4025, allocations: 1.781 kB / 456.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004922/0.4074, allocations: 1.653 MB / 457.8 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/0.4074, allocations: 3.984 kB / 457.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003772/0.4078, allocations: 72.95 kB / 457.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002538/0.408, allocations: 57.23 kB / 458 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.271e-05/0.4081, allocations: 12.42 kB / 458 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002084/0.4102, allocations: 1.723 MB / 459.7 MB, free: 9.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4102, allocations: 1.5 kB / 459.7 MB, free: 9.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002062/0.4122, allocations: 0.8022 MB / 460.5 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/0.4133, allocations: 343.5 kB / 460.9 MB, free: 9.074 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004363/0.4138, allocations: 7.781 kB / 460.9 MB, free: 9.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007665/0.4145, allocations: 48.14 kB / 460.9 MB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.4147, allocations: 32.06 kB / 460.9 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.746e-05/0.4147, allocations: 11.73 kB / 461 MB, free: 9.027 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004154/0.4188, allocations: 1.611 MB / 462.6 MB, free: 8.281 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4188, allocations: 0 / 462.6 MB, free: 8.281 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001706/0.4206, allocations: 210.9 kB / 462.8 MB, free: 8.238 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.00422/0.4248, allocations: 1.702 MB / 464.5 MB, free: 7.133 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00136/0.4261, allocations: 496.6 kB / 465 MB, free: 6.844 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/0.4261, allocations: 1.062 kB / 465 MB, free: 6.844 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006591/0.4268, allocations: 310.7 kB / 465.3 MB, free: 6.633 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001752/0.4286, allocations: 214.8 kB / 465.5 MB, free: 6.512 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02695/0.4555, allocations: 13.9 MB / 479.4 MB, free: 10.81 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001369/0.4569, allocations: 1.261 MB / 480.6 MB, free: 9.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007447/0.4576, allocations: 219.9 kB / 480.8 MB, free: 9.301 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000794/0.4584, allocations: 479.3 kB / 481.3 MB, free: 8.832 MB / 382.1 MB Notification: Performance of SimCode: time 9.61e-07/0.4584, allocations: 0 / 481.3 MB, free: 8.832 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07804/0.5365, allocations: 28.12 MB / 0.4975 GB, free: 12.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.11/14.65, allocations: 11.88 kB / 0.4975 GB, free: 12.87 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 & /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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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] Reference file matches [Calling sys.exit(0), Time elapsed: 18.39565401384607]