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.001042/0.001042, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 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.0009198/0.0009198, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 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 0.9776/0.9776, allocations: 173.4 MB / 201.1 MB, free: 9.355 MB / 186.7 MB " [Timeout remaining time 179] 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 1.683e-06/1.683e-06, allocations: 0 / 268 MB, free: 6.477 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.424e-05/2.592e-05, allocations: 6.25 kB / 268 MB, free: 6.469 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.01202/0.01205, allocations: 5.413 MB / 273.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002935/0.01498, allocations: 1.691 MB / 275.1 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004423/0.01543, allocations: 15.88 kB / 275.1 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007336/0.01616, allocations: 0.5172 MB / 275.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005471/0.01671, allocations: 358 kB / 276 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006507/0.01736, allocations: 379.2 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009974/0.01835, allocations: 0.9118 MB / 277.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003541/0.01871, allocations: 213.4 kB / 277.5 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005958/0.0193, allocations: 0.5223 MB / 278 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004136/0.01972, allocations: 383.1 kB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.661e-05/0.01979, allocations: 80 kB / 278.4 MB, free: 11.97 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001652/0.01996, allocations: 119.9 kB / 278.5 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003281/0.02029, allocations: 0.5961 MB / 279.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003417/0.02063, allocations: 426.7 kB / 279.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.02164, allocations: 1.203 MB / 280.8 MB, free: 9.629 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.02164, allocations: 0 / 280.8 MB, free: 9.629 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.02165, allocations: 0 / 280.8 MB, free: 9.629 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.628e-05/0.02168, allocations: 3.938 kB / 280.8 MB, free: 9.625 MB / 266.7 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.002308/0.02399, allocations: 2.211 MB / 283 MB, free: 7.367 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.02403, allocations: 8.031 kB / 283 MB, free: 7.359 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00024/0.02427, allocations: 231.7 kB / 283.2 MB, free: 7.133 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001101/0.02537, allocations: 1.039 MB / 284.2 MB, free: 6.062 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.648e-05/0.02546, allocations: 88.97 kB / 284.3 MB, free: 5.961 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.412e-05/0.02551, allocations: 55.94 kB / 284.4 MB, free: 5.906 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006288/0.02614, allocations: 0.7402 MB / 285.1 MB, free: 5.039 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.02615, allocations: 0 / 285.1 MB, free: 5.039 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.322e-05/0.02618, allocations: 28 kB / 285.2 MB, free: 5.012 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.02619, allocations: 12 kB / 285.2 MB, free: 5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002587/0.02645, allocations: 169.8 kB / 285.3 MB, free: 4.832 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002462/0.02891, allocations: 2.993 MB / 288.3 MB, free: 1.727 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003793/0.02929, allocations: 226.3 kB / 288.5 MB, free: 1.496 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004617/0.02976, allocations: 107.6 kB / 288.7 MB, free: 1.387 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.103e-05/0.02979, allocations: 4 kB / 288.7 MB, free: 1.383 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.02982, allocations: 41.39 kB / 288.7 MB, free: 1.332 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.412e-06/0.02982, allocations: 0 / 288.7 MB, free: 1.332 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008138/0.03063, allocations: 423.1 kB / 289.1 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.172e-05/0.03072, allocations: 209.6 kB / 289.3 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.108/0.1387, allocations: 2.006 MB / 291.3 MB, free: 25.08 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.206e-05/0.1388, allocations: 30.98 kB / 291.4 MB, free: 25.05 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005799/0.1393, allocations: 0.9638 MB / 292.3 MB, free: 24.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.938e-05/0.1394, allocations: 78.78 kB / 292.4 MB, free: 24.91 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.219e-05/0.1395, allocations: 73.88 kB / 292.5 MB, free: 24.88 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.8e-05/0.1395, allocations: 498.9 kB / 293 MB, free: 24.4 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.904e-05/0.1396, allocations: 44.27 kB / 293 MB, free: 24.4 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.1398, allocations: 417.2 kB / 293.4 MB, free: 23.94 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002195/0.14, allocations: 274 kB / 293.7 MB, free: 23.74 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.14, allocations: 1.75 kB / 293.7 MB, free: 23.74 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000653/0.1407, allocations: 433.7 kB / 294.1 MB, free: 23.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.1407, allocations: 9.219 kB / 294.1 MB, free: 23.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.1407, allocations: 4.219 kB / 294.1 MB, free: 23.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001437/0.1408, allocations: 46.02 kB / 294.2 MB, free: 23.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.141, allocations: 67.41 kB / 294.2 MB, free: 23.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007301/0.1417, allocations: 2.086 MB / 296.3 MB, free: 21.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002341/0.142, allocations: 46.83 kB / 296.4 MB, free: 21.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/0.142, allocations: 15.12 kB / 296.4 MB, free: 21.64 MB / 266.7 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.0001509/0.1421, allocations: 183.5 kB / 296.5 MB, free: 21.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.1423, allocations: 178.4 kB / 296.7 MB, free: 21.39 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004029/0.1427, allocations: 318.2 kB / 297 MB, free: 21.32 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.1427, allocations: 3.031 kB / 297 MB, free: 21.32 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.82e-07/0.1427, allocations: 3.938 kB / 297 MB, free: 21.32 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.1427, allocations: 2.828 kB / 297 MB, free: 21.32 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001514/0.1442, allocations: 1.507 MB / 298.5 MB, free: 20.97 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.1442, allocations: 1.188 kB / 298.5 MB, free: 20.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001103/0.1443, allocations: 52.2 kB / 298.6 MB, free: 20.97 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.277e-05/0.1444, allocations: 33.36 kB / 298.6 MB, free: 20.96 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.723e-05/0.1444, allocations: 5.125 kB / 298.6 MB, free: 20.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005927/0.145, allocations: 2.049 MB / 300.7 MB, free: 19 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.145, allocations: 0.6094 kB / 300.7 MB, free: 19 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004959/0.1455, allocations: 0.5455 MB / 301.2 MB, free: 18.68 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002861/0.1458, allocations: 286.5 kB / 301.5 MB, free: 18.59 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.14e-05/0.1458, allocations: 8.281 kB / 301.5 MB, free: 18.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.146, allocations: 28.02 kB / 301.5 MB, free: 18.59 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.658e-05/0.1461, allocations: 32 kB / 301.6 MB, free: 18.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.1461, allocations: 8.891 kB / 301.6 MB, free: 18.59 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001213/0.1473, allocations: 1.147 MB / 302.7 MB, free: 18.29 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1473, allocations: 4 kB / 302.7 MB, free: 18.28 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000485/0.1478, allocations: 210.9 kB / 302.9 MB, free: 18.25 MB / 266.7 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.0006771/0.1485, allocations: 344.1 kB / 303.3 MB, free: 18.13 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004181/0.1489, allocations: 351 kB / 303.6 MB, free: 17.92 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1489, allocations: 1.031 kB / 303.6 MB, free: 17.92 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001658/0.1491, allocations: 260.4 kB / 303.9 MB, free: 17.72 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005526/0.1496, allocations: 202.5 kB / 304.1 MB, free: 17.62 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002698/0.1523, allocations: 2.413 MB / 306.5 MB, free: 16.42 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002675/0.1526, allocations: 351.7 kB / 306.8 MB, free: 16.27 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002424/0.1528, allocations: 152.1 kB / 307 MB, free: 16.24 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/0.153, allocations: 77.31 kB / 307.1 MB, free: 16.23 MB / 266.7 MB Notification: Performance of SimCode: time 6.01e-07/0.153, allocations: 0 / 307.1 MB, free: 16.23 MB / 266.7 MB Notification: Performance of Templates: time 0.01709/0.1701, allocations: 16.21 MB / 323.3 MB, free: 3.492 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2282859990373254]