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.0008593/0.0008593, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008926/0.0008926, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 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 0.8946/0.8946, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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 1.553e-06/1.553e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.109e-05/2.264e-05, allocations: 2.984 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.00434/0.004363, allocations: 3.714 MB / 328.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002698/0.007061, allocations: 1.939 MB / 330.1 MB, free: 10.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005018/0.007562, allocations: 19.88 kB / 330.2 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001476/0.009039, allocations: 0.5756 MB / 330.7 MB, free: 9.625 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007173/0.009756, allocations: 405.8 kB / 331.1 MB, free: 9.227 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006105/0.01037, allocations: 286.9 kB / 331.4 MB, free: 8.949 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009605/0.01133, allocations: 1.009 MB / 332.4 MB, free: 7.938 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003383/0.01167, allocations: 221 kB / 332.6 MB, free: 7.719 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005145/0.01218, allocations: 0.5457 MB / 333.2 MB, free: 7.172 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004066/0.01259, allocations: 443 kB / 333.6 MB, free: 6.738 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.226e-05/0.01266, allocations: 80 kB / 333.7 MB, free: 6.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001737/0.01283, allocations: 139.9 kB / 333.8 MB, free: 6.523 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002523/0.01308, allocations: 490.6 kB / 334.3 MB, free: 6.043 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002572/0.01334, allocations: 382.8 kB / 334.7 MB, free: 5.668 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001418/0.01476, allocations: 1.737 MB / 336.4 MB, free: 3.926 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.247e-06/0.01476, allocations: 0 / 336.4 MB, free: 3.926 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.01476, allocations: 0 / 336.4 MB, free: 3.926 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.989e-05/0.01479, allocations: 0 / 336.4 MB, free: 3.926 MB / 298.7 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.002136/0.01693, allocations: 1.777 MB / 338.2 MB, free: 2.105 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.01697, allocations: 11.98 kB / 338.2 MB, free: 2.094 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.087e-05/0.01705, allocations: 102.7 kB / 338.3 MB, free: 1.984 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001737/0.01722, allocations: 167.9 kB / 338.5 MB, free: 1.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001281/0.0185, allocations: 1.137 MB / 339.6 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000112/0.01862, allocations: 174.1 kB / 339.8 MB, free: 456 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.532e-05/0.01867, allocations: 60.31 kB / 339.8 MB, free: 396 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008152/0.01949, allocations: 1.008 MB / 340.9 MB, free: 15.25 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.0195, allocations: 4.188 kB / 340.9 MB, free: 15.24 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.793e-05/0.01954, allocations: 23.94 kB / 340.9 MB, free: 15.22 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.01955, allocations: 12 kB / 340.9 MB, free: 15.21 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004986/0.02005, allocations: 435.7 kB / 341.3 MB, free: 14.78 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002752/0.0228, allocations: 2.603 MB / 343.9 MB, free: 12.08 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005813/0.02338, allocations: 398.4 kB / 344.3 MB, free: 11.68 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003877/0.02377, allocations: 293.4 kB / 344.6 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.02379, allocations: 4 kB / 344.6 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.02381, allocations: 46.55 kB / 344.6 MB, free: 11.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=30): time 1.673e-06/0.02381, allocations: 3.938 kB / 344.7 MB, free: 11.33 MB / 314.7 MB Notification: Performance of matching and sorting (n=30): time 0.001031/0.02484, allocations: 0.6937 MB / 345.3 MB, free: 10.63 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.456e-05/0.02493, allocations: 265 kB / 345.6 MB, free: 10.31 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001758/0.02669, allocations: 2.246 MB / 347.8 MB, free: 8.051 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.568e-05/0.02671, allocations: 33.7 kB / 347.9 MB, free: 8.012 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003648/0.02708, allocations: 0.6551 MB / 348.5 MB, free: 7.348 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.225e-05/0.02714, allocations: 111.1 kB / 348.6 MB, free: 7.238 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.001e-05/0.02723, allocations: 78.08 kB / 348.7 MB, free: 7.152 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.673e-05/0.02731, allocations: 322 kB / 349 MB, free: 6.832 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001974/0.0275, allocations: 156.7 kB / 349.2 MB, free: 6.68 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005876/0.02809, allocations: 0.5019 MB / 349.7 MB, free: 6.074 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004164/0.02851, allocations: 392.7 kB / 350.1 MB, free: 5.66 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.02851, allocations: 4 kB / 350.1 MB, free: 5.656 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007366/0.02925, allocations: 0.6528 MB / 350.7 MB, free: 4.992 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.02926, allocations: 4 kB / 350.7 MB, free: 4.988 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.02927, allocations: 4 kB / 350.7 MB, free: 4.984 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001994/0.02947, allocations: 68.94 kB / 350.8 MB, free: 4.914 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000196/0.02966, allocations: 95.81 kB / 350.9 MB, free: 4.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001038/0.0307, allocations: 1.648 MB / 352.5 MB, free: 3.062 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002162/0.03092, allocations: 71.7 kB / 352.6 MB, free: 2.992 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.027e-05/0.03094, allocations: 8 kB / 352.6 MB, free: 2.984 MB / 314.7 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.0003769/0.03131, allocations: 485.6 kB / 353.1 MB, free: 2.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.03142, allocations: 151 kB / 353.2 MB, free: 2.352 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001158/0.03154, allocations: 157.6 kB / 353.4 MB, free: 2.195 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.03154, allocations: 8.094 kB / 353.4 MB, free: 2.188 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-06/0.03154, allocations: 0 / 353.4 MB, free: 2.188 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.03155, allocations: 0 / 353.4 MB, free: 2.188 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001501/0.03305, allocations: 1.497 MB / 354.9 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.03305, allocations: 4 kB / 354.9 MB, free: 0.625 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001695/0.03322, allocations: 67.92 kB / 355 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001092/0.03333, allocations: 60.89 kB / 355 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.03335, allocations: 7.984 kB / 355 MB, free: 500 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001116/0.03446, allocations: 1.617 MB / 356.7 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.03447, allocations: 128 / 356.7 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008152/0.03528, allocations: 0.8067 MB / 357.5 MB, free: 13.92 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003001/0.03558, allocations: 255 kB / 357.7 MB, free: 13.67 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.737e-05/0.03565, allocations: 8 kB / 357.7 MB, free: 13.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002317/0.03588, allocations: 55.89 kB / 357.8 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.465e-05/0.03594, allocations: 35.88 kB / 357.8 MB, free: 13.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.488e-05/0.03596, allocations: 12 kB / 357.8 MB, free: 13.56 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001265/0.03723, allocations: 1.608 MB / 359.4 MB, free: 11.96 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03723, allocations: 0 / 359.4 MB, free: 11.96 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000415/0.03764, allocations: 203.7 kB / 359.6 MB, free: 11.76 MB / 330.7 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.001749/0.03939, allocations: 1.723 MB / 361.4 MB, free: 10.18 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006175/0.04001, allocations: 498.5 kB / 361.8 MB, free: 9.676 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.04001, allocations: 0 / 361.8 MB, free: 9.676 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00029/0.0403, allocations: 311.1 kB / 362.1 MB, free: 9.359 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005562/0.04086, allocations: 207.5 kB / 362.3 MB, free: 9.156 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01578/0.05664, allocations: 14 MB / 376.3 MB, free: 10.89 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004656/0.0571, allocations: 0.6565 MB / 377 MB, free: 10.21 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002989/0.0574, allocations: 215.8 kB / 377.2 MB, free: 9.996 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003956/0.0578, allocations: 484.3 kB / 377.7 MB, free: 9.523 MB / 346.7 MB Notification: Performance of SimCode: time 8.91e-07/0.0578, allocations: 0 / 377.7 MB, free: 9.523 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04583/0.1036, allocations: 29.81 MB / 407.5 MB, free: 11.85 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.528/8.631, allocations: 3.938 kB / 407.5 MB, free: 11.85 MB / 378.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.csv","/var/lib/jenkins/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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.95667911414057]