Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001681/0.001681, allocations: 100 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001923/0.001923, allocations: 186.8 kB / 24.45 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.606/1.606, allocations: 225.7 MB / 253.3 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 47.92 kB / 371.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.2561, allocations: 52.18 MB / 423.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007234/0.2633, allocations: 4.924 MB / 428.7 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003028/0.2664, allocations: 1.633 MB / 430.4 MB, free: 7.895 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003348/0.2667, allocations: 19.88 kB / 430.4 MB, free: 7.875 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00111/0.2678, allocations: 0.5057 MB / 430.9 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007084/0.2685, allocations: 354.1 kB / 431.2 MB, free: 7.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008085/0.2693, allocations: 371 kB / 431.6 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001025/0.2704, allocations: 0.8886 MB / 432.5 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004228/0.2708, allocations: 229.3 kB / 432.7 MB, free: 5.539 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00043/0.2712, allocations: 374.8 kB / 433.1 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005171/0.2717, allocations: 422.3 kB / 433.5 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.2718, allocations: 80 kB / 433.6 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002365/0.2721, allocations: 120 kB / 433.7 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004912/0.2726, allocations: 0.5921 MB / 434.3 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005385/0.2731, allocations: 0.5473 MB / 434.8 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00214/0.2752, allocations: 2.144 MB / 437 MB, free: 1.266 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.2753, allocations: 0 / 437 MB, free: 1.266 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2753, allocations: 0 / 437 MB, free: 1.266 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.647e-05/0.2753, allocations: 4 kB / 437 MB, free: 1.262 MB / 334.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.003462/0.2787, allocations: 2.058 MB / 439 MB, free: 15.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.2788, allocations: 8.031 kB / 439 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002824/0.2791, allocations: 195.7 kB / 439.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002511/0.2816, allocations: 1.447 MB / 440.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/0.2817, allocations: 92.41 kB / 440.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.576e-05/0.2818, allocations: 48 kB / 440.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/0.283, allocations: 0.8325 MB / 441.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.283, allocations: 0 / 441.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.127e-05/0.2831, allocations: 28 kB / 441.7 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.2831, allocations: 12 kB / 441.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007419/0.2838, allocations: 347.7 kB / 442 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004616/0.2885, allocations: 2.838 MB / 444.9 MB, free: 9.078 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.2896, allocations: 365.4 kB / 445.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004971/0.2901, allocations: 172.8 kB / 445.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.274e-05/0.2901, allocations: 0 / 445.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.454e-05/0.2902, allocations: 38.56 kB / 445.4 MB, free: 8.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.313e-06/0.2902, allocations: 0 / 445.4 MB, free: 8.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001915/0.2921, allocations: 0.6294 MB / 446.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001285/0.2922, allocations: 213.6 kB / 446.3 MB, free: 7.605 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003795/0.296, allocations: 2.844 MB / 449.1 MB, free: 4.711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.571e-05/0.296, allocations: 33.7 kB / 449.1 MB, free: 4.672 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007825/0.2968, allocations: 0.7934 MB / 449.9 MB, free: 3.875 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.125e-05/0.2969, allocations: 79.31 kB / 450 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.297, allocations: 73.97 kB / 450.1 MB, free: 3.719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.2972, allocations: 318 kB / 450.4 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003463/0.2975, allocations: 124.5 kB / 450.5 MB, free: 3.281 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005889/0.2981, allocations: 447.1 kB / 451 MB, free: 2.738 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007385/0.2988, allocations: 365.6 kB / 451.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.2988, allocations: 0 / 451.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001247/0.3001, allocations: 0.5555 MB / 451.9 MB, free: 1.766 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.3001, allocations: 8 kB / 451.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.3001, allocations: 8.375 kB / 451.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002733/0.3004, allocations: 64.88 kB / 451.9 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.3007, allocations: 79.88 kB / 452 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001766/0.3025, allocations: 1.583 MB / 453.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004785/0.3029, allocations: 59.7 kB / 453.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.429e-05/0.303, allocations: 12 kB / 453.7 MB, free: 15.85 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.0007972/0.3038, allocations: 0.5796 MB / 454.3 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002237/0.304, allocations: 174.8 kB / 454.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001236/0.3052, allocations: 0.5059 MB / 454.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.3052, allocations: 4 kB / 454.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.3052, allocations: 0 / 454.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.3052, allocations: 3.984 kB / 454.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002813/0.3081, allocations: 1.407 MB / 456.3 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.737e-06/0.3081, allocations: 8.125 kB / 456.4 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002405/0.3083, allocations: 47.91 kB / 456.4 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001683/0.3085, allocations: 52.8 kB / 456.5 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/0.3085, allocations: 4 kB / 456.5 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00158/0.3101, allocations: 1.535 MB / 458 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3101, allocations: 3.938 kB / 458 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001552/0.3116, allocations: 0.7095 MB / 458.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008214/0.3125, allocations: 302.8 kB / 459 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001632/0.3126, allocations: 12 kB / 459 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004553/0.3131, allocations: 43.95 kB / 459.1 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.247e-05/0.3132, allocations: 31.94 kB / 459.1 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.895e-05/0.3132, allocations: 8 kB / 459.1 MB, free: 10.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003052/0.3162, allocations: 2.031 MB / 461.1 MB, free: 8.176 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3162, allocations: 0 / 461.1 MB, free: 8.176 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008295/0.3171, allocations: 215.5 kB / 461.3 MB, free: 7.965 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.001445/0.3185, allocations: 379.5 kB / 461.7 MB, free: 7.734 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001114/0.3196, allocations: 429.2 kB / 462.1 MB, free: 7.305 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.3196, allocations: 4 kB / 462.1 MB, free: 7.301 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005549/0.3202, allocations: 255.2 kB / 462.4 MB, free: 7.039 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.3212, allocations: 220.5 kB / 462.6 MB, free: 6.828 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006109/0.3274, allocations: 3.2 MB / 465.8 MB, free: 3.582 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001036/0.3284, allocations: 0.7664 MB / 466.6 MB, free: 2.777 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003043/0.3287, allocations: 75.44 kB / 466.6 MB, free: 2.703 MB / 366.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3287, allocations: 4 kB / 466.6 MB, free: 2.699 MB / 366.1 MB Notification: Performance of Templates: time 0.03797/0.3667, allocations: 24.97 MB / 491.6 MB, free: 9.734 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 8.945231882855296]