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.002011/0.002011, allocations: 103.5 kB / 20.97 MB, free: 3.449 MB / 18.57 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.002026/0.002026, allocations: 160.8 kB / 24.27 MB, free: 152 kB / 18.57 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.572/1.572, allocations: 177 MB / 204.4 MB, free: 5.633 MB / 186.7 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 2.074e-06/2.074e-06, allocations: 0 / 272.2 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.792e-05/3e-05, allocations: 2.312 kB / 272.2 MB, free: 1.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008955/0.008985, allocations: 5.405 MB / 277.6 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003924/0.01291, allocations: 1.827 MB / 279.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004811/0.01339, allocations: 19.88 kB / 279.4 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001283/0.01467, allocations: 0.525 MB / 280 MB, free: 10.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009172/0.01559, allocations: 393.8 kB / 280.3 MB, free: 9.637 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009325/0.01652, allocations: 383.2 kB / 280.7 MB, free: 9.262 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00135/0.01787, allocations: 0.9157 MB / 281.6 MB, free: 8.344 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005599/0.01843, allocations: 229.3 kB / 281.9 MB, free: 8.113 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008304/0.01926, allocations: 0.5184 MB / 282.4 MB, free: 7.594 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005939/0.01986, allocations: 387.1 kB / 282.7 MB, free: 7.215 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001333/0.01999, allocations: 80 kB / 282.8 MB, free: 7.137 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002773/0.02027, allocations: 119.9 kB / 282.9 MB, free: 7.02 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006105/0.02088, allocations: 0.6078 MB / 283.5 MB, free: 6.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005696/0.02145, allocations: 430.6 kB / 284 MB, free: 5.988 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002511/0.02396, allocations: 2.064 MB / 286 MB, free: 3.918 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.02397, allocations: 4 kB / 286 MB, free: 3.914 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.02397, allocations: 0 / 286 MB, free: 3.914 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.151e-05/0.024, allocations: 0 / 286 MB, free: 3.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.004514/0.02851, allocations: 2.352 MB / 288.4 MB, free: 1.516 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.02856, allocations: 11.98 kB / 288.4 MB, free: 1.504 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004237/0.02899, allocations: 235.7 kB / 288.6 MB, free: 1.273 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002381/0.03137, allocations: 1.067 MB / 289.7 MB, free: 180 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/0.0315, allocations: 96.91 kB / 289.8 MB, free: 68 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.736e-05/0.0316, allocations: 52.38 kB / 289.8 MB, free: 16 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1038/0.1354, allocations: 0.8795 MB / 290.7 MB, free: 26.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/0.1354, allocations: 1.312 kB / 290.7 MB, free: 26.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.796e-05/0.1354, allocations: 20.75 kB / 290.7 MB, free: 26.86 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.1354, allocations: 12.28 kB / 290.8 MB, free: 26.86 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006392/0.1361, allocations: 323.5 kB / 291.1 MB, free: 26.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004735/0.1408, allocations: 3.574 MB / 294.6 MB, free: 24.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008819/0.1417, allocations: 310.3 kB / 295 MB, free: 24.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004135/0.1421, allocations: 166.8 kB / 295.1 MB, free: 24.68 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.952e-05/0.1421, allocations: 3.469 kB / 295.1 MB, free: 24.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.1422, allocations: 41.64 kB / 295.2 MB, free: 24.63 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.753e-06/0.1422, allocations: 6.219 kB / 295.2 MB, free: 24.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001515/0.1437, allocations: 0.5468 MB / 295.7 MB, free: 24.44 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.518e-05/0.1437, allocations: 217.6 kB / 295.9 MB, free: 24.18 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00325/0.147, allocations: 2.388 MB / 298.3 MB, free: 23.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.905e-05/0.147, allocations: 32.23 kB / 298.3 MB, free: 23.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008328/0.1478, allocations: 1.065 MB / 299.4 MB, free: 22.41 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.871e-05/0.1479, allocations: 78.8 kB / 299.5 MB, free: 22.36 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.148, allocations: 91.47 kB / 299.6 MB, free: 22.29 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.163e-05/0.1481, allocations: 0.5 MB / 300.1 MB, free: 21.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002758/0.1484, allocations: 104.2 kB / 300.2 MB, free: 21.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003527/0.1488, allocations: 495.6 kB / 300.7 MB, free: 21.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005374/0.1493, allocations: 385.6 kB / 301 MB, free: 20.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.1493, allocations: 2.5 kB / 301 MB, free: 20.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001033/0.1503, allocations: 0.538 MB / 301.6 MB, free: 20.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.1504, allocations: 11.47 kB / 301.6 MB, free: 20.72 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1504, allocations: 4.125 kB / 301.6 MB, free: 20.72 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002472/0.1506, allocations: 61.98 kB / 301.7 MB, free: 20.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002718/0.1509, allocations: 65.28 kB / 301.7 MB, free: 20.69 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00126/0.1521, allocations: 2.194 MB / 303.9 MB, free: 18.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004679/0.1526, allocations: 54.38 kB / 304 MB, free: 18.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.624e-05/0.1526, allocations: 11.98 kB / 304 MB, free: 18.59 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.0003224/0.153, allocations: 245.2 kB / 304.2 MB, free: 18.38 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001905/0.1531, allocations: 177 kB / 304.4 MB, free: 18.28 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009313/0.1541, allocations: 421.7 kB / 304.8 MB, free: 18.1 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.1541, allocations: 1.5 kB / 304.8 MB, free: 18.1 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.1541, allocations: 1.812 kB / 304.8 MB, free: 18.1 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.1541, allocations: 1.125 kB / 304.8 MB, free: 18.1 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003051/0.1571, allocations: 1.893 MB / 306.7 MB, free: 17.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1571, allocations: 0 / 306.7 MB, free: 17.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001996/0.1573, allocations: 48.36 kB / 306.7 MB, free: 17.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001433/0.1575, allocations: 44.53 kB / 306.8 MB, free: 17.11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.837e-05/0.1575, allocations: 7.188 kB / 306.8 MB, free: 17.1 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00116/0.1587, allocations: 2.139 MB / 308.9 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.1587, allocations: 5.156 kB / 308.9 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/0.16, allocations: 0.7059 MB / 309.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007031/0.1607, allocations: 285.5 kB / 309.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/0.1609, allocations: 6.219 kB / 309.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003446/0.1612, allocations: 33.55 kB / 310 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.68e-05/0.1613, allocations: 35.38 kB / 310 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.1613, allocations: 3.969 kB / 310 MB, free: 14.44 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001669/0.163, allocations: 1.301 MB / 311.3 MB, free: 13.33 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.163, allocations: 4 kB / 311.3 MB, free: 13.33 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006935/0.1637, allocations: 204 kB / 311.5 MB, free: 13.14 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.002412/0.1661, allocations: 387.5 kB / 311.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009214/0.167, allocations: 470 kB / 312.3 MB, free: 12.5 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.167, allocations: 8.125 kB / 312.3 MB, free: 12.49 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003962/0.1674, allocations: 309.9 kB / 312.7 MB, free: 12.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001066/0.1685, allocations: 216.1 kB / 312.9 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003334/0.1718, allocations: 2.443 MB / 315.3 MB, free: 9.473 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005754/0.1724, allocations: 0.7171 MB / 316 MB, free: 8.723 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000386/0.1728, allocations: 154.2 kB / 316.2 MB, free: 8.566 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000185/0.173, allocations: 80.5 kB / 316.3 MB, free: 8.488 MB / 266.7 MB Notification: Performance of SimCode: time 1.283e-06/0.173, allocations: 0 / 316.3 MB, free: 8.488 MB / 266.7 MB Notification: Performance of Templates: time 0.02572/0.1987, allocations: 15.54 MB / 331.8 MB, free: 9.051 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] 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.088970070006326]