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.0007555/0.0007555, allocations: 84.73 kB / 21.5 MB, free: 2.992 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.000856/0.000856, allocations: 161.2 kB / 24.91 MB, free: 9.199 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.9435/0.9435, allocations: 177 MB / 205.2 MB, free: 5.461 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 1.964e-06/1.964e-06, allocations: 3.938 kB / 273.4 MB, free: 1.266 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.073e-05/2.269e-05, allocations: 2.312 kB / 273.4 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005799/0.005822, allocations: 3.956 MB / 277.3 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003471/0.009294, allocations: 2.055 MB / 279.4 MB, free: 11.21 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002922/0.009586, allocations: 15.88 kB / 279.4 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001211/0.0108, allocations: 0.5873 MB / 280 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007167/0.01151, allocations: 397.9 kB / 280.4 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005971/0.01211, allocations: 303.2 kB / 280.7 MB, free: 9.918 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001036/0.01315, allocations: 1.005 MB / 281.7 MB, free: 8.914 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003596/0.01351, allocations: 223 kB / 281.9 MB, free: 8.691 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005021/0.01401, allocations: 0.5418 MB / 282.4 MB, free: 8.148 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003615/0.01437, allocations: 423 kB / 282.8 MB, free: 7.734 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.992e-05/0.01444, allocations: 80 kB / 282.9 MB, free: 7.656 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001469/0.01459, allocations: 139.9 kB / 283.1 MB, free: 7.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002447/0.01483, allocations: 490.6 kB / 283.5 MB, free: 7.039 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002415/0.01507, allocations: 382.9 kB / 283.9 MB, free: 6.664 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000757/0.01583, allocations: 1.086 MB / 285 MB, free: 5.574 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.01583, allocations: 0 / 285 MB, free: 5.574 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.01583, allocations: 3.938 kB / 285 MB, free: 5.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.509e-05/0.01585, allocations: 0 / 285 MB, free: 5.57 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.001427/0.01727, allocations: 1.654 MB / 286.7 MB, free: 3.879 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.01731, allocations: 15.92 kB / 286.7 MB, free: 3.863 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001541/0.01746, allocations: 136.8 kB / 286.8 MB, free: 3.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006901/0.01815, allocations: 0.6723 MB / 287.5 MB, free: 3.023 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001134/0.01826, allocations: 174.1 kB / 287.6 MB, free: 2.824 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.598e-05/0.01832, allocations: 52.38 kB / 287.7 MB, free: 2.773 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005771/0.0189, allocations: 0.8118 MB / 288.5 MB, free: 1.824 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.01891, allocations: 192 / 288.5 MB, free: 1.824 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.01894, allocations: 24.12 kB / 288.5 MB, free: 1.801 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.01895, allocations: 12 kB / 288.5 MB, free: 1.789 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001707/0.01912, allocations: 126.9 kB / 288.7 MB, free: 1.664 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1157/0.1348, allocations: 1.623 MB / 290.3 MB, free: 23.46 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004094/0.1352, allocations: 209.3 kB / 290.5 MB, free: 23.44 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002469/0.1355, allocations: 161.4 kB / 290.7 MB, free: 23.43 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.1355, allocations: 5.781 kB / 290.7 MB, free: 23.43 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.1355, allocations: 41.03 kB / 290.7 MB, free: 23.39 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.775e-06/0.1355, allocations: 1 kB / 290.7 MB, free: 23.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.000778/0.1363, allocations: 324.2 kB / 291 MB, free: 23.35 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.427e-05/0.1364, allocations: 265.5 kB / 291.3 MB, free: 23.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001327/0.1377, allocations: 1.338 MB / 292.6 MB, free: 22.86 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.379e-05/0.1377, allocations: 33.42 kB / 292.6 MB, free: 22.83 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.1379, allocations: 398.3 kB / 293 MB, free: 22.74 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.537e-05/0.138, allocations: 108.8 kB / 293.1 MB, free: 22.73 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.394e-05/0.1381, allocations: 80.23 kB / 293.2 MB, free: 22.7 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.743e-05/0.1381, allocations: 322.2 kB / 293.5 MB, free: 22.4 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.393e-05/0.1382, allocations: 39.08 kB / 293.6 MB, free: 22.4 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.1383, allocations: 382.5 kB / 293.9 MB, free: 22 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001758/0.1385, allocations: 194.2 kB / 294.1 MB, free: 21.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1385, allocations: 2.156 kB / 294.1 MB, free: 21.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004279/0.1389, allocations: 302.9 kB / 294.4 MB, free: 21.86 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.1389, allocations: 13.3 kB / 294.4 MB, free: 21.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.1389, allocations: 3.047 kB / 294.4 MB, free: 21.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001393/0.1391, allocations: 39.22 kB / 294.5 MB, free: 21.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001864/0.1393, allocations: 86 kB / 294.6 MB, free: 21.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006616/0.1399, allocations: 1.428 MB / 296 MB, free: 20.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001982/0.1401, allocations: 49.67 kB / 296 MB, free: 20.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.1401, allocations: 8.812 kB / 296.1 MB, free: 20.57 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 (battery.limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * 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.0001534/0.1403, allocations: 149 kB / 296.2 MB, free: 20.45 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.976e-05/0.1404, allocations: 83.47 kB / 296.3 MB, free: 20.45 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.856e-05/0.1405, allocations: 121.5 kB / 296.4 MB, free: 20.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.1405, allocations: 3.031 kB / 296.4 MB, free: 20.43 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1405, allocations: 0 / 296.4 MB, free: 20.43 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.1405, allocations: 3.172 kB / 296.4 MB, free: 20.43 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009653/0.1415, allocations: 0.7958 MB / 297.2 MB, free: 20.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.1415, allocations: 1.25 kB / 297.2 MB, free: 20.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.1416, allocations: 69.48 kB / 297.3 MB, free: 20.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.649e-05/0.1417, allocations: 35.36 kB / 297.3 MB, free: 20.2 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.803e-05/0.1417, allocations: 15.47 kB / 297.3 MB, free: 20.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005063/0.1422, allocations: 1.395 MB / 298.7 MB, free: 18.93 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.1422, allocations: 3.938 kB / 298.7 MB, free: 18.93 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004441/0.1427, allocations: 421.5 kB / 299.1 MB, free: 18.75 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/0.1429, allocations: 166.3 kB / 299.3 MB, free: 18.68 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.206e-05/0.143, allocations: 19.03 kB / 299.3 MB, free: 18.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.1431, allocations: 33.11 kB / 299.3 MB, free: 18.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.096e-05/0.1432, allocations: 34.33 kB / 299.4 MB, free: 18.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.1432, allocations: 5.141 kB / 299.4 MB, free: 18.68 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000731/0.1439, allocations: 0.7305 MB / 300.1 MB, free: 18.62 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1439, allocations: 2.219 kB / 300.1 MB, free: 18.62 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004485/0.1444, allocations: 210.1 kB / 300.3 MB, free: 18.61 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.001163/0.1456, allocations: 0.5607 MB / 300.9 MB, free: 18.44 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000344/0.1459, allocations: 301.3 kB / 301.2 MB, free: 18.3 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.62e-05/0.1459, allocations: 15.12 kB / 301.2 MB, free: 18.3 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001525/0.1461, allocations: 206.9 kB / 301.4 MB, free: 18.19 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004484/0.1465, allocations: 207.3 kB / 301.6 MB, free: 18.16 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00231/0.1488, allocations: 2.051 MB / 303.6 MB, free: 17.21 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002467/0.1491, allocations: 299.3 kB / 303.9 MB, free: 17.13 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002702/0.1493, allocations: 119.8 kB / 304.1 MB, free: 17.11 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003822/0.1497, allocations: 253.7 kB / 304.3 MB, free: 17.05 MB / 266.7 MB Notification: Performance of SimCode: time 8.32e-07/0.1497, allocations: 6.516 kB / 304.3 MB, free: 17.05 MB / 266.7 MB Notification: Performance of Templates: time 0.01599/0.1657, allocations: 14.81 MB / 319.1 MB, free: 5.734 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.0764966178685427]