Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001558/0.001558, allocations: 113.8 kB / 19.18 MB, free: 3.762 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.001653/0.001653, allocations: 208.9 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.489/1.489, allocations: 230.4 MB / 255.4 MB, free: 15.02 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-beta.om/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: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.0022/0.0022, allocations: 63.83 kB / 374.7 MB, free: 9.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1181, allocations: 53.31 MB / 428 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.2561/0.3742, allocations: 5.577 MB / 433.6 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003651/0.3779, allocations: 1.88 MB / 435.5 MB, free: 8.211 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007708/0.3787, allocations: 14.59 kB / 435.5 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001385/0.38, allocations: 0.5199 MB / 436 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001655/0.3817, allocations: 391.8 kB / 436.4 MB, free: 7.945 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001473/0.3832, allocations: 375.8 kB / 436.8 MB, free: 7.891 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001815/0.385, allocations: 0.8946 MB / 437.7 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006367/0.3856, allocations: 235.9 kB / 437.9 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008344/0.3864, allocations: 368.3 kB / 438.3 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001052/0.3875, allocations: 466.7 kB / 438.7 MB, free: 7.383 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003808/0.3879, allocations: 86.78 kB / 438.8 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005394/0.3884, allocations: 120.4 kB / 438.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00075/0.3892, allocations: 0.5909 MB / 439.5 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001431/0.3906, allocations: 0.7411 MB / 440.2 MB, free: 6.594 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003754/0.3944, allocations: 2.132 MB / 442.4 MB, free: 5.777 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.828e-06/0.3944, allocations: 0.6094 kB / 442.4 MB, free: 5.777 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3944, allocations: 0 / 442.4 MB, free: 5.777 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001175/0.3945, allocations: 1.375 kB / 442.4 MB, free: 5.777 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.006568/0.4011, allocations: 2.145 MB / 444.5 MB, free: 4.352 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.035e-05/0.4011, allocations: 10.12 kB / 444.5 MB, free: 4.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005792/0.4017, allocations: 195.2 kB / 444.7 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002994/0.4047, allocations: 1.527 MB / 446.3 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.68e-05/0.4048, allocations: 66.67 kB / 446.3 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.928e-05/0.4049, allocations: 47.59 kB / 446.4 MB, free: 3.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001116/0.406, allocations: 0.5774 MB / 446.9 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.406, allocations: 1.219 kB / 446.9 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.909e-05/0.406, allocations: 25.62 kB / 447 MB, free: 3.031 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.914e-05/0.4061, allocations: 11.62 kB / 447 MB, free: 3.031 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006903/0.4068, allocations: 346 kB / 447.3 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005371/0.4121, allocations: 3.242 MB / 450.6 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.4133, allocations: 362.5 kB / 450.9 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004745/0.4138, allocations: 169 kB / 451.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.07e-05/0.4138, allocations: 2.703 kB / 451.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.4138, allocations: 41.55 kB / 451.1 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.415e-06/0.4138, allocations: 1.062 kB / 451.1 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002164/0.416, allocations: 0.6979 MB / 451.8 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.274e-05/0.4161, allocations: 209.1 kB / 452 MB, free: 260 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004876/0.4209, allocations: 2.901 MB / 454.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.402e-05/0.421, allocations: 37.05 kB / 455 MB, free: 15.28 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000878/0.4219, allocations: 0.7897 MB / 455.8 MB, free: 14.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.461e-05/0.422, allocations: 76.47 kB / 455.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001493/0.4221, allocations: 69.98 kB / 455.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.4223, allocations: 316.6 kB / 456.2 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003791/0.4227, allocations: 125.9 kB / 456.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005091/0.4232, allocations: 290.3 kB / 456.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008025/0.424, allocations: 361 kB / 457 MB, free: 13.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.424, allocations: 0.9062 kB / 457 MB, free: 13.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001634/0.4256, allocations: 0.5788 MB / 457.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.4256, allocations: 7.031 kB / 457.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.4257, allocations: 3.953 kB / 457.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003159/0.426, allocations: 52.27 kB / 457.6 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003024/0.4263, allocations: 86.08 kB / 457.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001955/0.4282, allocations: 1.72 MB / 459.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008522/0.4291, allocations: 67.92 kB / 459.5 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.768e-05/0.4291, allocations: 11.84 kB / 459.5 MB, free: 11.61 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.001224/0.4303, allocations: 0.5775 MB / 460.1 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004094/0.4307, allocations: 182 kB / 460.2 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001387/0.4321, allocations: 0.5108 MB / 460.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.4321, allocations: 3.812 kB / 460.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.4321, allocations: 0 / 460.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.4321, allocations: 1.438 kB / 460.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00346/0.4356, allocations: 1.694 MB / 462.5 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.4356, allocations: 0 / 462.5 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002501/0.4359, allocations: 46.09 kB / 462.5 MB, free: 9.734 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001902/0.436, allocations: 51.8 kB / 462.5 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.033e-05/0.4361, allocations: 1 kB / 462.6 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001765/0.4378, allocations: 1.676 MB / 464.2 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4378, allocations: 1.188 kB / 464.2 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001977/0.4398, allocations: 0.7195 MB / 464.9 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008357/0.4406, allocations: 384.9 kB / 465.3 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001644/0.4408, allocations: 6.719 kB / 465.3 MB, free: 7.316 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004514/0.4413, allocations: 46.67 kB / 465.4 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.4414, allocations: 32.92 kB / 465.4 MB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.806e-05/0.4414, allocations: 4.875 kB / 465.4 MB, free: 7.277 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003802/0.4452, allocations: 2.073 MB / 467.5 MB, free: 6.301 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4452, allocations: 0 / 467.5 MB, free: 6.301 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001196/0.4464, allocations: 210.2 kB / 467.7 MB, free: 6.258 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.001439/0.4478, allocations: 381.1 kB / 468.1 MB, free: 6.102 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.4491, allocations: 425.3 kB / 468.5 MB, free: 5.852 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.4491, allocations: 1.156 kB / 468.5 MB, free: 5.852 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005521/0.4497, allocations: 263.4 kB / 468.7 MB, free: 5.672 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001344/0.451, allocations: 227.9 kB / 469 MB, free: 5.539 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006224/0.4573, allocations: 3.151 MB / 472.1 MB, free: 3.859 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001244/0.4585, allocations: 1.355 MB / 473.5 MB, free: 2.582 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000589/0.4591, allocations: 87.38 kB / 473.6 MB, free: 2.496 MB / 366.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4591, allocations: 0 / 473.6 MB, free: 2.496 MB / 366.1 MB Notification: Performance of Templates: time 0.04119/0.5003, allocations: 24.97 MB / 498.5 MB, free: 9.559 MB / 398.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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: 9.44578296202235]