Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.001578/0.001578, allocations: 122.7 kB / 18.5 MB, free: 4.578 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.002015/0.002015, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.473/1.473, 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.CCCV_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001799/0.001799, allocations: 67.88 kB / 373.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1186, allocations: 53.33 MB / 426.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.2639/0.3824, allocations: 5.549 MB / 432.2 MB, free: 8.703 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003422/0.3859, allocations: 1.884 MB / 434.1 MB, free: 8.625 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00044/0.3863, allocations: 14.41 kB / 434.1 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001146/0.3875, allocations: 0.53 MB / 434.6 MB, free: 8.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009111/0.3884, allocations: 389.3 kB / 435 MB, free: 8.418 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009475/0.3893, allocations: 370.8 kB / 435.4 MB, free: 8.398 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001263/0.3906, allocations: 0.8915 MB / 436.3 MB, free: 8.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005147/0.3911, allocations: 243.3 kB / 436.5 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006132/0.3917, allocations: 363.8 kB / 436.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000639/0.3923, allocations: 464.9 kB / 437.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001202/0.3925, allocations: 81.98 kB / 437.4 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002812/0.3927, allocations: 124.3 kB / 437.5 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005941/0.3933, allocations: 0.5862 MB / 438.1 MB, free: 7.754 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006484/0.394, allocations: 0.744 MB / 438.8 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003145/0.3971, allocations: 2.128 MB / 441 MB, free: 6.453 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/0.3971, allocations: 1.031 kB / 441 MB, free: 6.453 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.3971, allocations: 0 / 441 MB, free: 6.453 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.023e-05/0.3972, allocations: 0 / 441 MB, free: 6.453 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.004547/0.4018, allocations: 2.153 MB / 443.1 MB, free: 5.023 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.021e-05/0.4018, allocations: 14.41 kB / 443.1 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001297/0.4019, allocations: 92.91 kB / 443.2 MB, free: 4.949 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003977/0.4023, allocations: 195.2 kB / 443.4 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002892/0.4052, allocations: 1.514 MB / 444.9 MB, free: 4.047 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.273e-05/0.4053, allocations: 72.48 kB / 445 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.56e-05/0.4054, allocations: 47.22 kB / 445.1 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.4065, allocations: 0.5792 MB / 445.6 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.4065, allocations: 5.281 kB / 445.6 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.83e-05/0.4065, allocations: 21.44 kB / 445.7 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.003e-05/0.4066, allocations: 12.91 kB / 445.7 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007092/0.4073, allocations: 343.3 kB / 446 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005613/0.4129, allocations: 3.25 MB / 449.3 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.4141, allocations: 351.5 kB / 449.6 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004753/0.4145, allocations: 177.2 kB / 449.8 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.347e-05/0.4146, allocations: 1.469 kB / 449.8 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.4146, allocations: 43.03 kB / 449.8 MB, free: 1.438 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.334e-06/0.4146, allocations: 0 / 449.8 MB, free: 1.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002191/0.4168, allocations: 0.7005 MB / 450.5 MB, free: 1.105 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.299e-05/0.4169, allocations: 216.9 kB / 450.7 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004725/0.4216, allocations: 2.9 MB / 453.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.339e-05/0.4217, allocations: 32.27 kB / 453.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009469/0.4226, allocations: 0.7949 MB / 454.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.4227, allocations: 72.16 kB / 454.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/0.4229, allocations: 70.52 kB / 454.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.423, allocations: 321 kB / 454.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003571/0.4234, allocations: 117.4 kB / 455 MB, free: 14.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004987/0.4239, allocations: 287.4 kB / 455.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007709/0.4247, allocations: 361.6 kB / 455.7 MB, free: 14.33 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.4247, allocations: 1.188 kB / 455.7 MB, free: 14.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001593/0.4263, allocations: 0.5748 MB / 456.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.4263, allocations: 7.594 kB / 456.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.4263, allocations: 8.969 kB / 456.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003063/0.4266, allocations: 60.34 kB / 456.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002893/0.4269, allocations: 72.69 kB / 456.4 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001978/0.4289, allocations: 1.727 MB / 458.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008525/0.4297, allocations: 60.11 kB / 458.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.176e-05/0.4298, allocations: 19.5 kB / 458.2 MB, free: 12.28 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.001108/0.4309, allocations: 0.5759 MB / 458.8 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004189/0.4313, allocations: 178.8 kB / 458.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001305/0.4326, allocations: 0.51 MB / 459.4 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.433e-06/0.4326, allocations: 6.312 kB / 459.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-06/0.4326, allocations: 0.7812 kB / 459.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.4326, allocations: 3.984 kB / 459.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003407/0.436, allocations: 1.691 MB / 461.1 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.436, allocations: 9.094 kB / 461.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002298/0.4363, allocations: 45.59 kB / 461.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001959/0.4365, allocations: 53 kB / 461.3 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.721e-05/0.4365, allocations: 5.938 kB / 461.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002009/0.4385, allocations: 1.665 MB / 462.9 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.4385, allocations: 1.156 kB / 462.9 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001897/0.4404, allocations: 0.719 MB / 463.6 MB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001053/0.4414, allocations: 389.6 kB / 464 MB, free: 7.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000179/0.4416, allocations: 10.7 kB / 464 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000436/0.4421, allocations: 42.67 kB / 464.1 MB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.4422, allocations: 32.09 kB / 464.1 MB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.4422, allocations: 5.312 kB / 464.1 MB, free: 7.938 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003909/0.4461, allocations: 2.076 MB / 466.2 MB, free: 6.957 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4461, allocations: 0 / 466.2 MB, free: 6.957 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001189/0.4473, allocations: 200 kB / 466.4 MB, free: 6.926 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003246/0.4505, allocations: 1.52 MB / 467.9 MB, free: 5.891 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001177/0.4517, allocations: 445 kB / 468.3 MB, free: 5.625 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4517, allocations: 0 / 468.3 MB, free: 5.625 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005311/0.4522, allocations: 262.1 kB / 468.6 MB, free: 5.445 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001422/0.4537, allocations: 218.9 kB / 468.8 MB, free: 5.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0314/0.4851, allocations: 17.54 MB / 486.3 MB, free: 4.836 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001305/0.4864, allocations: 1.355 MB / 487.7 MB, free: 3.449 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007504/0.4871, allocations: 239.9 kB / 487.9 MB, free: 3.219 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008529/0.488, allocations: 0.5813 MB / 488.5 MB, free: 2.637 MB / 382.1 MB Notification: Performance of SimCode: time 8.81e-07/0.488, allocations: 0 / 488.5 MB, free: 2.637 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08324/0.5712, allocations: 32.89 MB / 0.5092 GB, free: 1.902 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.05/15.62, allocations: 7.641 kB / 0.5092 GB, free: 1.898 MB / 414.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.530864898115396]