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.001392/0.001392, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001441/0.001441, allocations: 207.8 kB / 23.73 MB, free: 4.391 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.503/1.503, allocations: 230.5 MB / 257.4 MB, free: 7.793 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: 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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 59.89 kB / 378.2 MB, free: 2.414 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2762, allocations: 53.41 MB / 431.6 MB, free: 6.527 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.007929/0.2842, allocations: 4.958 MB / 436.6 MB, free: 1.551 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003933/0.2881, allocations: 1.795 MB / 438.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005822/0.2887, allocations: 15.88 kB / 438.4 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001256/0.2899, allocations: 0.5097 MB / 438.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008469/0.2908, allocations: 393.9 kB / 439.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008708/0.2917, allocations: 378.4 kB / 439.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001059/0.2927, allocations: 0.8965 MB / 440.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004257/0.2931, allocations: 217.3 kB / 440.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004389/0.2936, allocations: 374.8 kB / 441.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005094/0.2941, allocations: 426.3 kB / 441.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001156/0.2942, allocations: 80 kB / 441.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002234/0.2944, allocations: 120 kB / 441.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004781/0.2949, allocations: 0.5843 MB / 442.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005417/0.2955, allocations: 0.5512 MB / 442.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002128/0.2976, allocations: 2.152 MB / 445 MB, free: 9.074 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.2976, allocations: 0 / 445 MB, free: 9.074 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2976, allocations: 0 / 445 MB, free: 9.074 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.085e-05/0.2976, allocations: 3.938 kB / 445 MB, free: 9.07 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.003464/0.3011, allocations: 2.07 MB / 447.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.3011, allocations: 19.98 kB / 447.1 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002816/0.3014, allocations: 195.7 kB / 447.3 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002552/0.3039, allocations: 1.451 MB / 448.8 MB, free: 5.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.3041, allocations: 104.7 kB / 448.9 MB, free: 5.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.788e-05/0.3041, allocations: 48 kB / 448.9 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.3054, allocations: 0.8325 MB / 449.7 MB, free: 4.168 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.3054, allocations: 7.938 kB / 449.8 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.044e-05/0.3054, allocations: 20 kB / 449.8 MB, free: 4.141 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.537e-05/0.3055, allocations: 12 kB / 449.8 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007508/0.3062, allocations: 347.7 kB / 450.1 MB, free: 3.785 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004541/0.3107, allocations: 2.842 MB / 453 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.3119, allocations: 361.9 kB / 453.3 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004733/0.3124, allocations: 172.1 kB / 453.5 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.007e-05/0.3124, allocations: 4 kB / 453.5 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.897e-05/0.3124, allocations: 42.5 kB / 453.5 MB, free: 268 kB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.633e-06/0.3124, allocations: 0 / 453.5 MB, free: 268 kB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001866/0.3143, allocations: 0.6147 MB / 454.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000126/0.3144, allocations: 213.6 kB / 454.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003762/0.3182, allocations: 2.876 MB / 457.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.737e-05/0.3182, allocations: 29.7 kB / 457.3 MB, free: 12.42 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000796/0.319, allocations: 0.8013 MB / 458.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.529e-05/0.3191, allocations: 75.38 kB / 458.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/0.3192, allocations: 69.98 kB / 458.2 MB, free: 11.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.3194, allocations: 318 kB / 458.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003478/0.3197, allocations: 128.6 kB / 458.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005664/0.3203, allocations: 439 kB / 459.1 MB, free: 10.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007426/0.321, allocations: 361.3 kB / 459.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.321, allocations: 0 / 459.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001212/0.3222, allocations: 0.5673 MB / 460 MB, free: 9.508 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.3222, allocations: 7.984 kB / 460 MB, free: 9.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.3223, allocations: 4 kB / 460 MB, free: 9.496 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002774/0.3225, allocations: 57.02 kB / 460.1 MB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003008/0.3228, allocations: 75.89 kB / 460.1 MB, free: 9.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/0.3247, allocations: 1.594 MB / 461.7 MB, free: 7.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004898/0.3252, allocations: 63.7 kB / 461.8 MB, free: 7.605 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.516e-05/0.3252, allocations: 12 kB / 461.8 MB, free: 7.594 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.0007942/0.326, allocations: 0.5718 MB / 462.4 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002257/0.3262, allocations: 170.9 kB / 462.5 MB, free: 6.844 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001246/0.3275, allocations: 0.506 MB / 463 MB, free: 6.328 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.3275, allocations: 3.984 kB / 463 MB, free: 6.324 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.3275, allocations: 4 kB / 463.1 MB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3275, allocations: 0 / 463.1 MB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002779/0.3303, allocations: 1.429 MB / 464.5 MB, free: 4.844 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.3303, allocations: 4 kB / 464.5 MB, free: 4.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002322/0.3305, allocations: 43.95 kB / 464.5 MB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001686/0.3307, allocations: 48.83 kB / 464.6 MB, free: 4.746 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.164e-05/0.3307, allocations: 7.938 kB / 464.6 MB, free: 4.738 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00154/0.3323, allocations: 1.531 MB / 466.1 MB, free: 3.105 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3323, allocations: 0 / 466.1 MB, free: 3.105 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001507/0.3338, allocations: 0.7191 MB / 466.8 MB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007971/0.3346, allocations: 306.8 kB / 467.1 MB, free: 2.062 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000134/0.3347, allocations: 19.88 kB / 467.2 MB, free: 2.043 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004357/0.3351, allocations: 47.95 kB / 467.2 MB, free: 1.996 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.861e-05/0.3352, allocations: 27.89 kB / 467.2 MB, free: 1.969 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.845e-05/0.3352, allocations: 12 kB / 467.2 MB, free: 1.957 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002959/0.3382, allocations: 2.043 MB / 469.3 MB, free: 15.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3382, allocations: 0 / 469.3 MB, free: 15.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008071/0.339, allocations: 199.7 kB / 469.5 MB, free: 15.69 MB / 382.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.001493/0.3405, allocations: 379.1 kB / 469.8 MB, free: 15.44 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00114/0.3416, allocations: 431.2 kB / 470.3 MB, free: 15.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3416, allocations: 4.062 kB / 470.3 MB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005597/0.3422, allocations: 266.5 kB / 470.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/0.3432, allocations: 206.6 kB / 470.7 MB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005559/0.3488, allocations: 3.034 MB / 473.8 MB, free: 11.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009836/0.3498, allocations: 0.7627 MB / 474.5 MB, free: 10.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006393/0.3504, allocations: 242.2 kB / 474.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002411/0.3506, allocations: 75.44 kB / 474.8 MB, free: 10.34 MB / 382.1 MB Notification: Performance of SimCode: time 1.203e-06/0.3506, allocations: 4 kB / 474.8 MB, free: 10.33 MB / 382.1 MB Notification: Performance of Templates: time 0.032/0.3826, allocations: 16.96 MB / 491.8 MB, free: 9.5 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.107486354187131]