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.001379/0.001379, allocations: 91.5 kB / 21.19 MB, free: 3.371 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.001102/0.001102, allocations: 156.5 kB / 24.55 MB, free: 16 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 0.9678/0.9678, allocations: 177 MB / 204.9 MB, free: 5.574 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.543e-06/1.543e-06, allocations: 0 / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.373e-05/1.527e-05, allocations: 2.312 kB / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.004029/0.004044, allocations: 4.012 MB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002471/0.006515, allocations: 2.036 MB / 278.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002661/0.006781, allocations: 15.88 kB / 279 MB, free: 11.37 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00103/0.007811, allocations: 0.5756 MB / 279.5 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005271/0.008338, allocations: 401.8 kB / 279.9 MB, free: 10.39 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004512/0.008789, allocations: 291.3 kB / 280.2 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007581/0.009547, allocations: 1.009 MB / 281.2 MB, free: 9.098 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002628/0.00981, allocations: 217 kB / 281.4 MB, free: 8.887 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004098/0.01022, allocations: 0.5458 MB / 282 MB, free: 8.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003907/0.01061, allocations: 459 kB / 282.4 MB, free: 7.891 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.581e-05/0.01069, allocations: 84 kB / 282.5 MB, free: 7.809 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001591/0.01085, allocations: 139.9 kB / 282.6 MB, free: 7.672 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002287/0.01107, allocations: 486.6 kB / 283.1 MB, free: 7.195 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002406/0.01131, allocations: 386.9 kB / 283.5 MB, free: 6.816 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007774/0.01209, allocations: 1.078 MB / 284.6 MB, free: 5.734 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.01209, allocations: 0 / 284.6 MB, free: 5.734 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.0121, allocations: 0 / 284.6 MB, free: 5.734 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.298e-05/0.01211, allocations: 4 kB / 284.6 MB, free: 5.73 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.001727/0.01383, allocations: 1.968 MB / 286.5 MB, free: 3.711 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.01387, allocations: 11.98 kB / 286.6 MB, free: 3.699 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001874/0.01406, allocations: 207.9 kB / 286.8 MB, free: 3.496 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008484/0.01491, allocations: 0.8391 MB / 287.6 MB, free: 2.621 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/0.01502, allocations: 178.1 kB / 287.8 MB, free: 2.418 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.878e-05/0.01508, allocations: 60.33 kB / 287.8 MB, free: 2.359 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006744/0.01575, allocations: 0.8606 MB / 288.7 MB, free: 1.348 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.01577, allocations: 192 / 288.7 MB, free: 1.348 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.658e-05/0.0158, allocations: 28.12 kB / 288.7 MB, free: 1.32 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.01582, allocations: 15.94 kB / 288.7 MB, free: 1.305 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002832/0.0161, allocations: 181.8 kB / 288.9 MB, free: 1.125 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1097/0.1258, allocations: 2.56 MB / 291.5 MB, free: 22.74 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000614/0.1264, allocations: 255.8 kB / 291.7 MB, free: 22.71 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003862/0.1268, allocations: 191.8 kB / 291.9 MB, free: 22.7 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.455e-05/0.1269, allocations: 6.469 kB / 291.9 MB, free: 22.7 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.1269, allocations: 44.08 kB / 292 MB, free: 22.65 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.715e-06/0.1269, allocations: 0 / 292 MB, free: 22.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.001046/0.1279, allocations: 463.3 kB / 292.4 MB, free: 22.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.118e-05/0.128, allocations: 264 kB / 292.7 MB, free: 22.29 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001987/0.13, allocations: 1.632 MB / 294.3 MB, free: 22.05 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.952e-05/0.13, allocations: 31.61 kB / 294.3 MB, free: 22.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005439/0.1305, allocations: 0.8005 MB / 295.1 MB, free: 21.84 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.412e-05/0.1306, allocations: 112.4 kB / 295.2 MB, free: 21.78 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.1307, allocations: 86.59 kB / 295.3 MB, free: 21.75 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.828e-05/0.1308, allocations: 0.4979 MB / 295.8 MB, free: 21.27 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.1309, allocations: 54.08 kB / 295.9 MB, free: 21.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002213/0.1311, allocations: 442.6 kB / 296.3 MB, free: 20.8 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002949/0.1314, allocations: 251.5 kB / 296.6 MB, free: 20.68 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.1314, allocations: 1.188 kB / 296.6 MB, free: 20.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007468/0.1322, allocations: 437.4 kB / 297 MB, free: 20.51 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.1322, allocations: 6.625 kB / 297 MB, free: 20.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.1322, allocations: 2.344 kB / 297 MB, free: 20.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002154/0.1324, allocations: 54.55 kB / 297.1 MB, free: 20.49 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002666/0.1327, allocations: 84.33 kB / 297.1 MB, free: 20.49 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00106/0.1338, allocations: 2.119 MB / 299.3 MB, free: 18.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002906/0.134, allocations: 49.2 kB / 299.3 MB, free: 18.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.586e-05/0.1341, allocations: 15.89 kB / 299.3 MB, free: 18.43 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.000182/0.1343, allocations: 182.2 kB / 299.5 MB, free: 18.26 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001498/0.1344, allocations: 153.7 kB / 299.6 MB, free: 18.18 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001242/0.1345, allocations: 120.7 kB / 299.8 MB, free: 18.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.1345, allocations: 3.344 kB / 299.8 MB, free: 18.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.1345, allocations: 1.188 kB / 299.8 MB, free: 18.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.1345, allocations: 2.578 kB / 299.8 MB, free: 18.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001835/0.1364, allocations: 1.426 MB / 301.2 MB, free: 17.37 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.1364, allocations: 0 / 301.2 MB, free: 17.37 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002188/0.1366, allocations: 69.02 kB / 301.3 MB, free: 17.37 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001111/0.1367, allocations: 38.25 kB / 301.3 MB, free: 17.35 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.56e-05/0.1367, allocations: 8.469 kB / 301.3 MB, free: 17.35 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007576/0.1375, allocations: 2.079 MB / 303.4 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1375, allocations: 4.375 kB / 303.4 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007/0.1382, allocations: 0.5989 MB / 304 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003252/0.1385, allocations: 241.3 kB / 304.2 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.1386, allocations: 9.484 kB / 304.2 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002695/0.1389, allocations: 34.05 kB / 304.3 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.779e-05/0.139, allocations: 31.8 kB / 304.3 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.139, allocations: 10.06 kB / 304.3 MB, free: 14.82 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001172/0.1402, allocations: 0.9471 MB / 305.3 MB, free: 14.48 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1402, allocations: 2.812 kB / 305.3 MB, free: 14.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006374/0.1408, allocations: 205.8 kB / 305.5 MB, free: 14.46 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.001074/0.1419, allocations: 446 kB / 305.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005579/0.1424, allocations: 388.8 kB / 306.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.1424, allocations: 1.031 kB / 306.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002409/0.1427, allocations: 281.9 kB / 306.6 MB, free: 13.91 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006799/0.1434, allocations: 208.9 kB / 306.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002863/0.1462, allocations: 2.118 MB / 308.9 MB, free: 12.7 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002271/0.1465, allocations: 306.8 kB / 309.2 MB, free: 12.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003015/0.1468, allocations: 138.2 kB / 309.3 MB, free: 12.57 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.1469, allocations: 73.67 kB / 309.4 MB, free: 12.55 MB / 266.7 MB Notification: Performance of SimCode: time 1.132e-06/0.1469, allocations: 0 / 309.4 MB, free: 12.55 MB / 266.7 MB Notification: Performance of Templates: time 0.01724/0.1642, allocations: 14.63 MB / 324 MB, free: 56 kB / 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.251393430866301]