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.00126/0.00126, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001164/0.001164, allocations: 142.3 kB / 24.97 MB, free: 8.859 MB / 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.985/0.985, allocations: 173.3 MB / 201.5 MB, free: 9.344 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.352e-06/1.352e-06, allocations: 0 / 268.1 MB, free: 6.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.668e-05/2.803e-05, allocations: 6.25 kB / 268.1 MB, free: 6.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.004624/0.004652, allocations: 5.39 MB / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001848/0.006501, allocations: 1.691 MB / 275.1 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002193/0.00672, allocations: 15.88 kB / 275.2 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007255/0.007446, allocations: 0.5172 MB / 275.7 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004498/0.007895, allocations: 361.9 kB / 276 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005034/0.008399, allocations: 367.3 kB / 276.4 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006386/0.009037, allocations: 0.9118 MB / 277.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002901/0.009328, allocations: 221.3 kB / 277.5 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004131/0.009741, allocations: 0.5185 MB / 278 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003205/0.01006, allocations: 387.1 kB / 278.4 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.434e-05/0.01013, allocations: 80 kB / 278.5 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001231/0.01025, allocations: 119.9 kB / 278.6 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002941/0.01054, allocations: 0.5922 MB / 279.2 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002733/0.01082, allocations: 438.7 kB / 279.6 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008706/0.01169, allocations: 1.203 MB / 280.8 MB, free: 9.918 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.01169, allocations: 0 / 280.8 MB, free: 9.918 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.01169, allocations: 3.938 kB / 280.8 MB, free: 9.914 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.0117, allocations: 0 / 280.8 MB, free: 9.914 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.00187/0.01357, allocations: 2.211 MB / 283 MB, free: 7.656 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.163e-05/0.0136, allocations: 8.031 kB / 283 MB, free: 7.648 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001936/0.0138, allocations: 235.7 kB / 283.3 MB, free: 7.418 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.0148, allocations: 1.039 MB / 284.3 MB, free: 6.348 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.461e-05/0.01488, allocations: 96.97 kB / 284.4 MB, free: 6.238 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.372e-05/0.01494, allocations: 55.94 kB / 284.5 MB, free: 6.184 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006011/0.01554, allocations: 0.7476 MB / 285.2 MB, free: 5.312 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.01555, allocations: 0 / 285.2 MB, free: 5.312 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.581e-05/0.01559, allocations: 28 kB / 285.2 MB, free: 5.285 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.0156, allocations: 8 kB / 285.3 MB, free: 5.277 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002604/0.01586, allocations: 169.8 kB / 285.4 MB, free: 5.109 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00239/0.01825, allocations: 2.997 MB / 288.4 MB, free: 2 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003731/0.01862, allocations: 222.5 kB / 288.6 MB, free: 1.773 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001743/0.0188, allocations: 107.6 kB / 288.7 MB, free: 1.664 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.147e-05/0.01882, allocations: 4 kB / 288.7 MB, free: 1.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.01885, allocations: 37.39 kB / 288.8 MB, free: 1.613 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.363e-06/0.01885, allocations: 0 / 288.8 MB, free: 1.613 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006659/0.01951, allocations: 426.9 kB / 289.2 MB, free: 1.188 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.837e-05/0.01958, allocations: 209.6 kB / 289.4 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1095/0.129, allocations: 2.001 MB / 291.4 MB, free: 25.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.362e-05/0.1291, allocations: 32.59 kB / 291.4 MB, free: 24.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005662/0.1297, allocations: 0.9707 MB / 292.4 MB, free: 24.84 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.469e-05/0.1297, allocations: 77.25 kB / 292.5 MB, free: 24.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.327e-05/0.1298, allocations: 73.77 kB / 292.5 MB, free: 24.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.178e-05/0.1298, allocations: 494.8 kB / 293 MB, free: 24.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.52e-05/0.1299, allocations: 49.81 kB / 293.1 MB, free: 24.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001708/0.1301, allocations: 413.2 kB / 293.5 MB, free: 23.88 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002251/0.1303, allocations: 274.7 kB / 293.8 MB, free: 23.68 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.1303, allocations: 1.75 kB / 293.8 MB, free: 23.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005806/0.1309, allocations: 433.1 kB / 294.2 MB, free: 23.55 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.1309, allocations: 10.34 kB / 294.2 MB, free: 23.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1309, allocations: 4.188 kB / 294.2 MB, free: 23.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002067/0.1312, allocations: 40.23 kB / 294.2 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001766/0.1313, allocations: 69.45 kB / 294.3 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008616/0.1322, allocations: 2.085 MB / 296.4 MB, free: 21.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002329/0.1324, allocations: 49.75 kB / 296.4 MB, free: 21.58 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.1324, allocations: 16.89 kB / 296.4 MB, free: 21.58 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.0001776/0.1326, allocations: 179.1 kB / 296.6 MB, free: 21.42 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001319/0.1328, allocations: 177.4 kB / 296.8 MB, free: 21.33 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004301/0.1332, allocations: 318.8 kB / 297.1 MB, free: 21.26 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1332, allocations: 3 kB / 297.1 MB, free: 21.26 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.1332, allocations: 4.5 kB / 297.1 MB, free: 21.26 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.1332, allocations: 1.391 kB / 297.1 MB, free: 21.26 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001541/0.1347, allocations: 1.519 MB / 298.6 MB, free: 20.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.1347, allocations: 0.5156 kB / 298.6 MB, free: 20.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.1349, allocations: 46.56 kB / 298.7 MB, free: 20.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.668e-05/0.1349, allocations: 32.72 kB / 298.7 MB, free: 20.89 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/0.135, allocations: 5.656 kB / 298.7 MB, free: 20.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006395/0.1356, allocations: 2.048 MB / 300.8 MB, free: 18.94 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1356, allocations: 0 / 300.8 MB, free: 18.94 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005031/0.1361, allocations: 0.5413 MB / 301.3 MB, free: 18.61 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003076/0.1364, allocations: 287.3 kB / 301.6 MB, free: 18.52 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.481e-05/0.1365, allocations: 4.609 kB / 301.6 MB, free: 18.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/0.1367, allocations: 31.73 kB / 301.6 MB, free: 18.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.918e-05/0.1368, allocations: 34.25 kB / 301.7 MB, free: 18.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.1368, allocations: 6.609 kB / 301.7 MB, free: 18.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001344/0.1381, allocations: 1.152 MB / 302.8 MB, free: 18.28 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1381, allocations: 0 / 302.8 MB, free: 18.28 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005116/0.1386, allocations: 210.2 kB / 303 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.0006853/0.1393, allocations: 338.4 kB / 303.4 MB, free: 18.13 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004385/0.1398, allocations: 358.6 kB / 303.7 MB, free: 17.91 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1398, allocations: 1 kB / 303.7 MB, free: 17.91 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001747/0.1399, allocations: 255.9 kB / 304 MB, free: 17.71 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006019/0.1405, allocations: 207.4 kB / 304.2 MB, free: 17.62 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003088/0.1436, allocations: 2.413 MB / 306.6 MB, free: 16.41 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002859/0.1439, allocations: 348.1 kB / 306.9 MB, free: 16.27 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002818/0.1442, allocations: 155.5 kB / 307.1 MB, free: 16.24 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.1443, allocations: 77.09 kB / 307.1 MB, free: 16.23 MB / 266.7 MB Notification: Performance of SimCode: time 1.163e-06/0.1443, allocations: 0 / 307.1 MB, free: 16.23 MB / 266.7 MB Notification: Performance of Templates: time 0.01769/0.162, allocations: 15.59 MB / 322.7 MB, free: 4.148 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.2961463120300323]