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.001914/0.001914, allocations: 92.27 kB / 20.96 MB, free: 3.445 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.002328/0.002328, allocations: 156.9 kB / 24.26 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.474/1.474, allocations: 177 MB / 204.5 MB, free: 5.613 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.195e-06/2.195e-06, allocations: 0 / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.375e-05/3.595e-05, allocations: 2.312 kB / 272.2 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.008287/0.008323, allocations: 4.952 MB / 277.1 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00408/0.0124, allocations: 1.796 MB / 278.9 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005708/0.01297, allocations: 19.88 kB / 279 MB, free: 11 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001393/0.01437, allocations: 0.5172 MB / 279.5 MB, free: 10.48 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009971/0.01536, allocations: 405.7 kB / 279.9 MB, free: 10.08 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009362/0.0163, allocations: 371.2 kB / 280.2 MB, free: 9.715 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0012/0.0175, allocations: 0.9235 MB / 281.2 MB, free: 8.789 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004751/0.01797, allocations: 217.3 kB / 281.4 MB, free: 8.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000713/0.01869, allocations: 0.5185 MB / 281.9 MB, free: 8.051 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005473/0.01923, allocations: 379.1 kB / 282.3 MB, free: 7.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001227/0.01936, allocations: 76 kB / 282.3 MB, free: 7.605 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002683/0.01963, allocations: 127.9 kB / 282.5 MB, free: 7.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000583/0.02021, allocations: 0.5922 MB / 283.1 MB, free: 6.887 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005626/0.02077, allocations: 442.6 kB / 283.5 MB, free: 6.453 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002457/0.02323, allocations: 2.064 MB / 285.5 MB, free: 4.383 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.02323, allocations: 0 / 285.5 MB, free: 4.383 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.02323, allocations: 0 / 285.5 MB, free: 4.383 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.542e-05/0.02326, allocations: 0 / 285.5 MB, free: 4.383 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.003727/0.02699, allocations: 2.046 MB / 287.6 MB, free: 2.297 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.02704, allocations: 11.98 kB / 287.6 MB, free: 2.285 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004236/0.02746, allocations: 239.6 kB / 287.8 MB, free: 2.051 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002642/0.0301, allocations: 1.474 MB / 289.3 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001524/0.03025, allocations: 100.9 kB / 289.4 MB, free: 444 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.03036, allocations: 52.38 kB / 289.5 MB, free: 392 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1258/0.1561, allocations: 0.8309 MB / 290.3 MB, free: 27.29 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.651e-05/0.1562, allocations: 2.031 kB / 290.3 MB, free: 27.29 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.95e-05/0.1562, allocations: 20.97 kB / 290.3 MB, free: 27.29 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.1563, allocations: 12.03 kB / 290.3 MB, free: 27.29 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008554/0.1571, allocations: 346.2 kB / 290.7 MB, free: 27.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004667/0.1618, allocations: 2.864 MB / 293.5 MB, free: 25.81 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.1629, allocations: 360.8 kB / 293.9 MB, free: 25.7 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004674/0.1634, allocations: 174.2 kB / 294.1 MB, free: 25.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.299e-05/0.1634, allocations: 4.219 kB / 294.1 MB, free: 25.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.1635, allocations: 40.61 kB / 294.1 MB, free: 25.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.693e-06/0.1635, allocations: 0 / 294.1 MB, free: 25.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.002012/0.1655, allocations: 0.6327 MB / 294.7 MB, free: 25.42 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.197e-05/0.1655, allocations: 215.5 kB / 294.9 MB, free: 25.17 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003743/0.1693, allocations: 2.865 MB / 297.8 MB, free: 24.24 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.628e-05/0.1693, allocations: 30.95 kB / 297.8 MB, free: 24.2 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005363/0.1699, allocations: 0.799 MB / 298.6 MB, free: 23.61 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.036e-05/0.1699, allocations: 77.39 kB / 298.7 MB, free: 23.56 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.17, allocations: 65.38 kB / 298.8 MB, free: 23.52 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.717e-05/0.1701, allocations: 322 kB / 299.1 MB, free: 23.21 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003537/0.1704, allocations: 120 kB / 299.2 MB, free: 23.18 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003844/0.1708, allocations: 441.9 kB / 299.6 MB, free: 22.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006307/0.1714, allocations: 368.1 kB / 300 MB, free: 22.52 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1714, allocations: 1 kB / 300 MB, free: 22.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001281/0.1727, allocations: 0.5704 MB / 300.6 MB, free: 22.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.1727, allocations: 11.47 kB / 300.6 MB, free: 22.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.1728, allocations: 4.781 kB / 300.6 MB, free: 22.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002759/0.173, allocations: 62.17 kB / 300.6 MB, free: 22.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000299/0.1733, allocations: 69.8 kB / 300.7 MB, free: 22.24 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001273/0.1746, allocations: 1.606 MB / 302.3 MB, free: 20.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005815/0.1752, allocations: 57.03 kB / 302.4 MB, free: 20.76 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.024e-05/0.1752, allocations: 15.69 kB / 302.4 MB, free: 20.75 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.0007144/0.1759, allocations: 0.5732 MB / 303 MB, free: 20.49 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002575/0.1762, allocations: 176.9 kB / 303.1 MB, free: 20.39 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001194/0.1774, allocations: 0.5137 MB / 303.6 MB, free: 20.2 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.1774, allocations: 6.938 kB / 303.7 MB, free: 20.2 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.1774, allocations: 0 / 303.7 MB, free: 20.2 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.1774, allocations: 0 / 303.7 MB, free: 20.2 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002553/0.1799, allocations: 1.428 MB / 305.1 MB, free: 19.53 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.18, allocations: 0 / 305.1 MB, free: 19.53 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002326/0.1802, allocations: 48.25 kB / 305.1 MB, free: 19.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001574/0.1803, allocations: 47.81 kB / 305.2 MB, free: 19.48 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.056e-05/0.1804, allocations: 6.062 kB / 305.2 MB, free: 19.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001001/0.1814, allocations: 1.538 MB / 306.7 MB, free: 17.99 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1814, allocations: 0 / 306.7 MB, free: 17.99 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001354/0.1827, allocations: 0.7161 MB / 307.4 MB, free: 17.55 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005304/0.1832, allocations: 313.9 kB / 307.7 MB, free: 17.37 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001184/0.1834, allocations: 0 / 307.7 MB, free: 17.37 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003934/0.1838, allocations: 47.89 kB / 307.8 MB, free: 17.32 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.005e-05/0.1839, allocations: 39.89 kB / 307.8 MB, free: 17.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.1839, allocations: 4 kB / 307.8 MB, free: 17.28 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001982/0.1858, allocations: 2.043 MB / 309.9 MB, free: 15.21 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1858, allocations: 4 kB / 309.9 MB, free: 15.21 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000774/0.1866, allocations: 203.9 kB / 310.1 MB, free: 15.02 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.001696/0.1883, allocations: 385.8 kB / 310.5 MB, free: 14.86 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001022/0.1893, allocations: 430.6 kB / 310.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.1893, allocations: 0 / 310.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004441/0.1898, allocations: 267.6 kB / 311.1 MB, free: 14.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009407/0.1907, allocations: 215.7 kB / 311.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003938/0.1947, allocations: 3.035 MB / 314.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006446/0.1953, allocations: 0.7644 MB / 315.1 MB, free: 10.08 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004582/0.1958, allocations: 237.3 kB / 315.4 MB, free: 9.844 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002044/0.196, allocations: 80.48 kB / 315.5 MB, free: 9.766 MB / 266.7 MB Notification: Performance of SimCode: time 1.463e-06/0.196, allocations: 4 kB / 315.5 MB, free: 9.762 MB / 266.7 MB Notification: Performance of Templates: time 0.02551/0.2215, allocations: 15.62 MB / 331.1 MB, free: 10.26 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 480] 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: 4.842904705903493]