Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.000969/0.000969, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001127/0.001127, allocations: 167.7 kB / 24.99 MB, free: 8.219 MB / 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 0.9742/0.9742, allocations: 177 MB / 205.2 MB, free: 5.527 MB / 186.7 MB " [Timeout remaining time 179] 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.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|battery.capacitor.[0-9,]+..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging") translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|battery.capacitor.[0-9,]+..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.665e-06/2.665e-06, allocations: 0 / 273 MB, free: 1.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.536e-05/3.802e-05, allocations: 2.312 kB / 273 MB, free: 1.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.00652/0.006558, allocations: 4.004 MB / 277 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003971/0.01053, allocations: 2.029 MB / 279 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004765/0.01101, allocations: 11.94 kB / 279 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001381/0.01239, allocations: 0.5795 MB / 279.6 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007238/0.01311, allocations: 401.8 kB / 280 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006062/0.01372, allocations: 287.4 kB / 280.3 MB, free: 10.4 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00109/0.01481, allocations: 1.017 MB / 281.3 MB, free: 9.379 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004185/0.01523, allocations: 209 kB / 281.5 MB, free: 9.176 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007184/0.01594, allocations: 0.5458 MB / 282 MB, free: 8.629 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006146/0.01656, allocations: 459 kB / 282.5 MB, free: 8.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.01666, allocations: 80 kB / 282.6 MB, free: 8.102 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002687/0.01693, allocations: 135.9 kB / 282.7 MB, free: 7.969 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003124/0.01724, allocations: 490.6 kB / 283.2 MB, free: 7.488 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003371/0.01758, allocations: 390.8 kB / 283.6 MB, free: 7.105 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001172/0.01875, allocations: 1.074 MB / 284.6 MB, free: 6.027 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.01876, allocations: 3.938 kB / 284.6 MB, free: 6.023 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.01876, allocations: 4 kB / 284.6 MB, free: 6.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.827e-05/0.0188, allocations: 0 / 284.6 MB, free: 6.02 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.00228/0.02108, allocations: 1.964 MB / 286.6 MB, free: 4.004 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.02112, allocations: 15.98 kB / 286.6 MB, free: 3.988 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002548/0.02138, allocations: 207.9 kB / 286.8 MB, free: 3.785 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00109/0.02247, allocations: 0.843 MB / 287.7 MB, free: 2.906 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001363/0.0226, allocations: 174.1 kB / 287.8 MB, free: 2.707 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.549e-05/0.02267, allocations: 60.33 kB / 287.9 MB, free: 2.648 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007682/0.02344, allocations: 0.8606 MB / 288.7 MB, free: 1.637 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.02345, allocations: 192 / 288.7 MB, free: 1.637 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.185e-05/0.02349, allocations: 28.12 kB / 288.8 MB, free: 1.609 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.02351, allocations: 12 kB / 288.8 MB, free: 1.598 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000325/0.02383, allocations: 189.8 kB / 289 MB, free: 1.41 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1459/0.1697, allocations: 2.552 MB / 291.5 MB, free: 27.01 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006133/0.1703, allocations: 261.9 kB / 291.8 MB, free: 26.98 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003789/0.1707, allocations: 187.9 kB / 292 MB, free: 26.96 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.1707, allocations: 6.719 kB / 292 MB, free: 26.96 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.1707, allocations: 46.11 kB / 292 MB, free: 26.92 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.735e-06/0.1707, allocations: 1.156 kB / 292 MB, free: 26.92 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.001046/0.1718, allocations: 458.5 kB / 292.5 MB, free: 26.88 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.526e-05/0.1718, allocations: 269.8 kB / 292.7 MB, free: 26.56 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00198/0.1738, allocations: 1.631 MB / 294.4 MB, free: 26.08 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.1738, allocations: 33.89 kB / 294.4 MB, free: 26.05 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005078/0.1744, allocations: 0.7997 MB / 295.2 MB, free: 25.48 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.843e-05/0.1744, allocations: 113.2 kB / 295.3 MB, free: 25.4 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.1745, allocations: 85.91 kB / 295.4 MB, free: 25.34 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.161e-05/0.1746, allocations: 0.4945 MB / 295.9 MB, free: 24.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/0.1747, allocations: 56.47 kB / 295.9 MB, free: 24.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002263/0.1749, allocations: 448.7 kB / 296.4 MB, free: 24.36 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002922/0.1752, allocations: 240.5 kB / 296.6 MB, free: 24.2 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.1752, allocations: 2.578 kB / 296.6 MB, free: 24.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007143/0.1759, allocations: 440.5 kB / 297 MB, free: 24.02 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.176, allocations: 9.75 kB / 297.1 MB, free: 24.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.176, allocations: 2.219 kB / 297.1 MB, free: 24.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002014/0.1762, allocations: 55.94 kB / 297.1 MB, free: 24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002647/0.1764, allocations: 87.55 kB / 297.2 MB, free: 23.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009964/0.1774, allocations: 2.113 MB / 299.3 MB, free: 21.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002819/0.1777, allocations: 44.64 kB / 299.4 MB, free: 21.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.698e-05/0.1777, allocations: 15.38 kB / 299.4 MB, free: 21.93 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001825/0.1779, allocations: 187.8 kB / 299.5 MB, free: 21.75 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001606/0.1781, allocations: 147 kB / 299.7 MB, free: 21.67 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001328/0.1782, allocations: 128.7 kB / 299.8 MB, free: 21.6 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.1782, allocations: 2.188 kB / 299.8 MB, free: 21.6 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.1782, allocations: 2.688 kB / 299.8 MB, free: 21.6 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1782, allocations: 3.859 kB / 299.8 MB, free: 21.6 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001832/0.1801, allocations: 1.425 MB / 301.3 MB, free: 20.85 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1801, allocations: 1.812 kB / 301.3 MB, free: 20.85 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002251/0.1803, allocations: 67.92 kB / 301.3 MB, free: 20.85 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001061/0.1804, allocations: 43.39 kB / 301.4 MB, free: 20.83 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.1804, allocations: 8 kB / 301.4 MB, free: 20.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007253/0.1811, allocations: 2.071 MB / 303.4 MB, free: 18.8 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.1811, allocations: 1.281 kB / 303.4 MB, free: 18.8 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006779/0.1818, allocations: 0.5918 MB / 304 MB, free: 18.42 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003244/0.1821, allocations: 236 kB / 304.3 MB, free: 18.3 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.627e-05/0.1822, allocations: 20.73 kB / 304.3 MB, free: 18.29 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002716/0.1825, allocations: 35.7 kB / 304.3 MB, free: 18.29 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.527e-05/0.1826, allocations: 30.62 kB / 304.3 MB, free: 18.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.98e-05/0.1826, allocations: 13.69 kB / 304.4 MB, free: 18.28 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.00118/0.1838, allocations: 0.9432 MB / 305.3 MB, free: 17.95 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1838, allocations: 0 / 305.3 MB, free: 17.95 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006529/0.1845, allocations: 207.2 kB / 305.5 MB, free: 17.93 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,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 (26): * Single equations (assignments): 25 * 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 Backend phase and start with SimCode phase: time 0.001125/0.1856, allocations: 440.9 kB / 305.9 MB, free: 17.79 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000554/0.1861, allocations: 396.2 kB / 306.3 MB, free: 17.55 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.1861, allocations: 1.375 kB / 306.3 MB, free: 17.55 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002453/0.1864, allocations: 281.3 kB / 306.6 MB, free: 17.35 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006966/0.1871, allocations: 198.7 kB / 306.8 MB, free: 17.27 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002774/0.1899, allocations: 2.121 MB / 308.9 MB, free: 16.16 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/0.1901, allocations: 311.9 kB / 309.2 MB, free: 16.05 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002854/0.1904, allocations: 145.3 kB / 309.4 MB, free: 16.02 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.1905, allocations: 66.72 kB / 309.4 MB, free: 16.01 MB / 266.7 MB Notification: Performance of SimCode: time 7.81e-07/0.1905, allocations: 0 / 309.4 MB, free: 16.01 MB / 266.7 MB Notification: Performance of Templates: time 0.01802/0.2086, allocations: 14.01 MB / 323.4 MB, free: 2.883 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.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.2872554550413042]