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.001332/0.001332, allocations: 117 kB / 18.41 MB, free: 4.664 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.001399/0.001399, allocations: 186.9 kB / 21.34 MB, free: 1.734 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.513/1.513, allocations: 222.9 MB / 247 MB, free: 4.211 MB / 190.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.001632/0.001632, allocations: 55.92 kB / 358.7 MB, free: 8.367 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09805/0.09969, allocations: 49.44 MB / 408.1 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.00833/0.1081, allocations: 5.471 MB / 413.6 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003133/0.1112, allocations: 1.723 MB / 415.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003135/0.1116, allocations: 15.94 kB / 415.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001021/0.1126, allocations: 0.5213 MB / 415.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006692/0.1133, allocations: 342.1 kB / 416.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008802/0.1142, allocations: 375.1 kB / 416.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001114/0.1153, allocations: 0.9002 MB / 417.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005221/0.1159, allocations: 336.8 kB / 417.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004196/0.1163, allocations: 362.8 kB / 418.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005275/0.1168, allocations: 446.4 kB / 418.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001125/0.1169, allocations: 76 kB / 418.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002266/0.1172, allocations: 123.9 kB / 418.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005075/0.1177, allocations: 0.5804 MB / 419.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007168/0.1184, allocations: 0.7338 MB / 420.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002262/0.1207, allocations: 2.132 MB / 422.2 MB, free: 8.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.1207, allocations: 3.984 kB / 422.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1207, allocations: 0 / 422.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.33e-05/0.1208, allocations: 0 / 422.2 MB, free: 8.727 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.003547/0.1243, allocations: 2.133 MB / 424.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.1244, allocations: 19.83 kB / 424.3 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002895/0.1247, allocations: 195.6 kB / 424.5 MB, free: 6.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002415/0.1271, allocations: 1.515 MB / 426.1 MB, free: 4.766 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.877e-05/0.1272, allocations: 62.7 kB / 426.1 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.907e-05/0.1273, allocations: 48 kB / 426.2 MB, free: 4.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/0.1284, allocations: 0.5854 MB / 426.7 MB, free: 4.023 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.1284, allocations: 0 / 426.7 MB, free: 4.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.093e-05/0.1285, allocations: 20 kB / 426.8 MB, free: 4.004 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.838e-05/0.1285, allocations: 16 kB / 426.8 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007581/0.1293, allocations: 343.8 kB / 427.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004912/0.1342, allocations: 3.243 MB / 430.4 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1817/0.3159, allocations: 370 kB / 430.7 MB, free: 21.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004847/0.3165, allocations: 189.7 kB / 430.9 MB, free: 21.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.413e-05/0.3165, allocations: 4.344 kB / 430.9 MB, free: 21.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/0.3165, allocations: 37.38 kB / 430.9 MB, free: 21.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.395e-06/0.3165, allocations: 0 / 430.9 MB, free: 21.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001843/0.3184, allocations: 0.7028 MB / 431.7 MB, free: 21.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.966e-05/0.3184, allocations: 210.1 kB / 431.9 MB, free: 21.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003313/0.3218, allocations: 2.889 MB / 434.7 MB, free: 21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.691e-05/0.3218, allocations: 34.92 kB / 434.8 MB, free: 20.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006638/0.3225, allocations: 0.7889 MB / 435.6 MB, free: 20.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.23e-05/0.3226, allocations: 79.92 kB / 435.6 MB, free: 20.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.3227, allocations: 68.42 kB / 435.7 MB, free: 20.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.038e-05/0.3227, allocations: 322.4 kB / 436 MB, free: 20.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003262/0.3231, allocations: 121.2 kB / 436.1 MB, free: 20.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003808/0.3234, allocations: 294.9 kB / 436.4 MB, free: 20.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006325/0.3241, allocations: 356.1 kB / 436.8 MB, free: 20.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.3241, allocations: 1.312 kB / 436.8 MB, free: 20.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0011/0.3252, allocations: 0.5676 MB / 437.3 MB, free: 20.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.3252, allocations: 8.219 kB / 437.4 MB, free: 20.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.3253, allocations: 5.312 kB / 437.4 MB, free: 20.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002649/0.3255, allocations: 63.47 kB / 437.4 MB, free: 20.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002844/0.3258, allocations: 76.78 kB / 437.5 MB, free: 20.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001299/0.3271, allocations: 1.726 MB / 439.2 MB, free: 18.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00043/0.3276, allocations: 60.34 kB / 439.3 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.54e-05/0.3276, allocations: 15.72 kB / 439.3 MB, free: 18.52 MB / 350.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.0006147/0.3282, allocations: 0.5742 MB / 439.9 MB, free: 18.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000181/0.3284, allocations: 174.4 kB / 440 MB, free: 18.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001139/0.3296, allocations: 0.5133 MB / 440.6 MB, free: 18.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.3296, allocations: 4.844 kB / 440.6 MB, free: 18.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-06/0.3296, allocations: 4.031 kB / 440.6 MB, free: 18.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3296, allocations: 1.5 kB / 440.6 MB, free: 18.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002462/0.3321, allocations: 1.685 MB / 442.3 MB, free: 17.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3321, allocations: 0 / 442.3 MB, free: 17.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002257/0.3323, allocations: 49.5 kB / 442.3 MB, free: 17.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001554/0.3325, allocations: 46.62 kB / 442.3 MB, free: 17.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.3325, allocations: 6.688 kB / 442.4 MB, free: 17.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001079/0.3336, allocations: 1.68 MB / 444 MB, free: 16.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3336, allocations: 1.469 kB / 444 MB, free: 16.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001449/0.3351, allocations: 0.7183 MB / 444.8 MB, free: 16.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005687/0.3356, allocations: 386.8 kB / 445.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001306/0.3358, allocations: 7.516 kB / 445.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004269/0.3362, allocations: 47.22 kB / 445.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.3363, allocations: 27.31 kB / 445.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.989e-05/0.3364, allocations: 9.719 kB / 445.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002716/0.3391, allocations: 2.062 MB / 447.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.61e-07/0.3391, allocations: 0 / 447.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007798/0.3399, allocations: 210.9 kB / 447.5 MB, free: 15.75 MB / 350.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.001189/0.3411, allocations: 363.1 kB / 447.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009934/0.3421, allocations: 439.9 kB / 448.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3421, allocations: 1.344 kB / 448.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004684/0.3426, allocations: 267.6 kB / 448.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009776/0.3436, allocations: 229.9 kB / 448.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004815/0.3484, allocations: 3.205 MB / 452 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000898/0.3493, allocations: 1.357 MB / 453.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002683/0.3496, allocations: 80.25 kB / 453.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3496, allocations: 4 kB / 453.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of Templates: time 0.03751/0.3871, allocations: 24.83 MB / 478.2 MB, free: 8.777 MB / 366.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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 9.031063651083969]