Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.002/0.002, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.002007/0.002007, allocations: 184 kB / 23.7 MB, free: 4.414 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.552/1.552, allocations: 225.7 MB / 252.5 MB, free: 12.85 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_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.1..v|cell.cell.capacitor.2..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 51.92 kB / 370.9 MB, free: 9.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3074, allocations: 52.18 MB / 423.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.007919/0.3153, allocations: 5.36 MB / 428.4 MB, free: 9.102 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003951/0.3193, allocations: 2.026 MB / 430.4 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005153/0.3198, allocations: 19.88 kB / 430.5 MB, free: 7.055 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001526/0.3213, allocations: 0.6069 MB / 431.1 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008736/0.3222, allocations: 413.8 kB / 431.5 MB, free: 6.039 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001061/0.3233, allocations: 417.6 kB / 431.9 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001578/0.3248, allocations: 1.304 MB / 433.2 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005857/0.3254, allocations: 286.3 kB / 433.5 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006409/0.3261, allocations: 0.5023 MB / 434 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007926/0.3269, allocations: 0.5681 MB / 434.5 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001655/0.327, allocations: 116 kB / 434.7 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003539/0.3274, allocations: 180 kB / 434.8 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005365/0.3279, allocations: 0.6505 MB / 435.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006714/0.3286, allocations: 0.668 MB / 436.1 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002697/0.3313, allocations: 2.658 MB / 438.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.3313, allocations: 0 / 438.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3313, allocations: 0 / 438.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.811e-05/0.3313, allocations: 0 / 438.8 MB, free: 14.68 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004104/0.3354, allocations: 2.358 MB / 441.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.3355, allocations: 8.031 kB / 441.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003409/0.3358, allocations: 223.5 kB / 441.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002864/0.3387, allocations: 1.636 MB / 443 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001891/0.3389, allocations: 185.8 kB / 443.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/0.339, allocations: 60 kB / 443.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001751/0.3407, allocations: 1.185 MB / 444.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.3407, allocations: 0 / 444.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.774e-05/0.3408, allocations: 28 kB / 444.5 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/0.3408, allocations: 12 kB / 444.5 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001118/0.3419, allocations: 0.5555 MB / 445 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006113/0.3481, allocations: 3.498 MB / 448.5 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001392/0.3495, allocations: 0.4993 MB / 449 MB, free: 4.051 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008049/0.3503, allocations: 342.1 kB / 449.4 MB, free: 3.715 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.198e-05/0.3503, allocations: 4.281 kB / 449.4 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.723e-05/0.3503, allocations: 38.84 kB / 449.4 MB, free: 3.664 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.525e-06/0.3503, allocations: 0 / 449.4 MB, free: 3.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.002424/0.3528, allocations: 0.8622 MB / 450.3 MB, free: 2.793 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001639/0.3529, allocations: 269 kB / 450.5 MB, free: 2.469 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004463/0.3574, allocations: 3.1 MB / 453.6 MB, free: 15.33 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.667e-05/0.3574, allocations: 33.69 kB / 453.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001079/0.3585, allocations: 0.8843 MB / 454.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.3587, allocations: 123 kB / 454.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002543/0.3589, allocations: 94.14 kB / 454.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002001/0.3591, allocations: 322 kB / 455.1 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000746/0.3599, allocations: 204.9 kB / 455.3 MB, free: 13.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001096/0.361, allocations: 0.5928 MB / 455.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001498/0.3625, allocations: 0.5206 MB / 456.4 MB, free: 12.37 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.3625, allocations: 0 / 456.4 MB, free: 12.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.00266/0.3651, allocations: 0.774 MB / 457.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.331e-05/0.3652, allocations: 10.19 kB / 457.2 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.3652, allocations: 4 kB / 457.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004517/0.3656, allocations: 72.69 kB / 457.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000705/0.3663, allocations: 112 kB / 457.4 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002758/0.3691, allocations: 1.66 MB / 459 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/0.3702, allocations: 75.73 kB / 459.1 MB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.187e-05/0.3702, allocations: 20 kB / 459.1 MB, free: 9.539 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (51): * Single equations (assignments): 50 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.001591/0.3718, allocations: 0.646 MB / 459.8 MB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004827/0.3723, allocations: 182.8 kB / 459.9 MB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006957/0.373, allocations: 225.9 kB / 460.2 MB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.335e-06/0.373, allocations: 4 kB / 460.2 MB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.373, allocations: 0 / 460.2 MB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.373, allocations: 7.922 kB / 460.2 MB, free: 8.469 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005862/0.3789, allocations: 1.832 MB / 462 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.3789, allocations: 0 / 462 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006129/0.3795, allocations: 84 kB / 462.1 MB, free: 6.504 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002993/0.3798, allocations: 56.81 kB / 462.1 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.103e-05/0.3799, allocations: 8 kB / 462.2 MB, free: 6.438 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002474/0.3823, allocations: 1.614 MB / 463.8 MB, free: 4.727 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.3823, allocations: 4 kB / 463.8 MB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003384/0.3857, allocations: 0.9758 MB / 464.7 MB, free: 3.719 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001597/0.3873, allocations: 366.7 kB / 465.1 MB, free: 3.359 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004384/0.3878, allocations: 11.94 kB / 465.1 MB, free: 3.348 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/0.389, allocations: 59.94 kB / 465.2 MB, free: 3.289 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001816/0.3891, allocations: 35.94 kB / 465.2 MB, free: 3.254 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.621e-05/0.3892, allocations: 8 kB / 465.2 MB, free: 3.246 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.006406/0.3956, allocations: 2.207 MB / 467.4 MB, free: 1.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.4e-07/0.3956, allocations: 0 / 467.4 MB, free: 1.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002023/0.3976, allocations: 259.6 kB / 467.7 MB, free: 0.7656 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,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 (29): * Single equations (assignments): 28 * 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 Backend phase and start with SimCode phase: time 0.003124/0.4007, allocations: 0.4996 MB / 468.2 MB, free: 484 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002688/0.4034, allocations: 0.5935 MB / 468.8 MB, free: 15.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.4034, allocations: 0.8125 kB / 468.8 MB, free: 15.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001236/0.4047, allocations: 355.3 kB / 469.1 MB, free: 15.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002881/0.4075, allocations: 251.8 kB / 469.4 MB, free: 15.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01275/0.4203, allocations: 3.684 MB / 473.1 MB, free: 11.53 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002364/0.4227, allocations: 0.9117 MB / 474 MB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001507/0.4242, allocations: 290.8 kB / 474.2 MB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006336/0.4248, allocations: 87.44 kB / 474.3 MB, free: 10.21 MB / 382.1 MB Notification: Performance of SimCode: time 1.593e-06/0.4248, allocations: 0 / 474.3 MB, free: 10.21 MB / 382.1 MB Notification: Performance of Templates: time 0.0673/0.4921, allocations: 20.77 MB / 495.1 MB, free: 5.633 MB / 398.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.540850423276424]