Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.00189/0.00189, allocations: 116 kB / 18.45 MB, free: 4.562 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.002242/0.002242, allocations: 213.6 kB / 21.42 MB, free: 1.605 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.555/1.555, allocations: 230.6 MB / 254.8 MB, free: 15.09 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: 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_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_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 51.92 kB / 374.1 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09867/0.1003, allocations: 53.33 MB / 427.5 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.2192/0.3195, allocations: 5.556 MB / 433 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003678/0.3232, allocations: 1.889 MB / 434.9 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008367/0.324, allocations: 16.72 kB / 434.9 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001438/0.3255, allocations: 0.5151 MB / 435.5 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001159/0.3266, allocations: 399.4 kB / 435.8 MB, free: 7.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001/0.3276, allocations: 373.5 kB / 436.2 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001415/0.329, allocations: 0.894 MB / 437.1 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000452/0.3295, allocations: 234.8 kB / 437.3 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006135/0.3301, allocations: 376.2 kB / 437.7 MB, free: 7.363 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005127/0.3306, allocations: 465.7 kB / 438.2 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001139/0.3307, allocations: 78.84 kB / 438.2 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002374/0.331, allocations: 120.5 kB / 438.3 MB, free: 7.172 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000459/0.3314, allocations: 0.5885 MB / 438.9 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005223/0.332, allocations: 0.7444 MB / 439.7 MB, free: 6.398 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002387/0.3343, allocations: 2.131 MB / 441.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.3343, allocations: 2.859 kB / 441.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3343, allocations: 1.094 kB / 441.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.112e-05/0.3344, allocations: 0 / 441.8 MB, free: 5.582 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.003978/0.3384, allocations: 2.147 MB / 444 MB, free: 4.152 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.3384, allocations: 18.45 kB / 444 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003916/0.3388, allocations: 195.8 kB / 444.2 MB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002527/0.3413, allocations: 1.516 MB / 445.7 MB, free: 3.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.449e-05/0.3414, allocations: 68.52 kB / 445.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.913e-05/0.3415, allocations: 48.05 kB / 445.8 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00105/0.3426, allocations: 0.5822 MB / 446.4 MB, free: 2.844 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.081e-05/0.3426, allocations: 1.953 kB / 446.4 MB, free: 2.844 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.321e-05/0.3426, allocations: 21.72 kB / 446.4 MB, free: 2.828 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.3426, allocations: 12.12 kB / 446.4 MB, free: 2.828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007373/0.3434, allocations: 346 kB / 446.8 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005314/0.3487, allocations: 3.248 MB / 450 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001154/0.3498, allocations: 360 kB / 450.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004653/0.3503, allocations: 171.7 kB / 450.5 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.631e-05/0.3503, allocations: 2.156 kB / 450.5 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.3504, allocations: 38.52 kB / 450.6 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.134e-06/0.3504, allocations: 0 / 450.6 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.002199/0.3526, allocations: 0.7054 MB / 451.3 MB, free: 304 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.407e-05/0.3526, allocations: 213.2 kB / 451.5 MB, free: 44 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004737/0.3574, allocations: 2.896 MB / 454.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.589e-05/0.3574, allocations: 32.97 kB / 454.4 MB, free: 15.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008372/0.3583, allocations: 0.792 MB / 455.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.727e-05/0.3584, allocations: 78.88 kB / 455.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/0.3585, allocations: 69.53 kB / 455.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.3587, allocations: 322.6 kB / 455.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000385/0.359, allocations: 120.4 kB / 455.8 MB, free: 14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005249/0.3596, allocations: 293.5 kB / 456.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007559/0.3603, allocations: 356 kB / 456.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.3603, allocations: 1.031 kB / 456.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001724/0.3621, allocations: 0.5746 MB / 457 MB, free: 13.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.3621, allocations: 7 kB / 457 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.3621, allocations: 3.844 kB / 457 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003044/0.3624, allocations: 59.97 kB / 457.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002968/0.3627, allocations: 73.56 kB / 457.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001834/0.3645, allocations: 1.726 MB / 458.9 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008766/0.3654, allocations: 63.08 kB / 458.9 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.315e-05/0.3654, allocations: 16.47 kB / 458.9 MB, free: 11.4 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.001098/0.3665, allocations: 0.5837 MB / 459.5 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000518/0.367, allocations: 178.3 kB / 459.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001447/0.3685, allocations: 0.5066 MB / 460.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.3685, allocations: 2.438 kB / 460.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.3685, allocations: 4 kB / 460.2 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.3685, allocations: 0 / 460.2 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003658/0.3722, allocations: 1.685 MB / 461.9 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.3722, allocations: 0 / 461.9 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000267/0.3724, allocations: 56.03 kB / 461.9 MB, free: 9.516 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001996/0.3726, allocations: 48.41 kB / 462 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.764e-05/0.3727, allocations: 6.062 kB / 462 MB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001718/0.3744, allocations: 1.676 MB / 463.7 MB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3744, allocations: 0 / 463.7 MB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002147/0.3765, allocations: 0.7213 MB / 464.4 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0011/0.3776, allocations: 389.8 kB / 464.8 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005347/0.3782, allocations: 7.219 kB / 464.8 MB, free: 7.094 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007693/0.3789, allocations: 42.55 kB / 464.8 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.3791, allocations: 32.67 kB / 464.9 MB, free: 7.059 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.697e-05/0.3791, allocations: 9.062 kB / 464.9 MB, free: 7.055 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00449/0.3836, allocations: 2.072 MB / 466.9 MB, free: 6.078 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3836, allocations: 0 / 466.9 MB, free: 6.078 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001472/0.385, allocations: 206.7 kB / 467.1 MB, free: 6.039 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.001433/0.3865, allocations: 370.7 kB / 467.5 MB, free: 5.879 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001302/0.3878, allocations: 430.8 kB / 467.9 MB, free: 5.625 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/0.3878, allocations: 3.219 kB / 467.9 MB, free: 5.625 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005697/0.3884, allocations: 250.3 kB / 468.2 MB, free: 5.453 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001748/0.3901, allocations: 235.4 kB / 468.4 MB, free: 5.316 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006633/0.3967, allocations: 3.155 MB / 471.5 MB, free: 3.633 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001552/0.3983, allocations: 1.357 MB / 472.9 MB, free: 2.328 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000555/0.3988, allocations: 87.42 kB / 473 MB, free: 2.242 MB / 366.1 MB Notification: Performance of SimCode: time 1.432e-06/0.3988, allocations: 0 / 473 MB, free: 2.242 MB / 366.1 MB Notification: Performance of Templates: time 0.04422/0.4431, allocations: 24.97 MB / 498 MB, free: 9.297 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.29890334798256]