Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009222/0.0009222, allocations: 80.8 kB / 21.49 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009502/0.0009502, allocations: 168.7 kB / 24.91 MB, free: 9.191 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9798/0.9798, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 273.5 MB, free: 1.285 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.162e-05/1.287e-05, allocations: 2.312 kB / 273.5 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.003668/0.00368, allocations: 3.995 MB / 277.5 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002324/0.006004, allocations: 2.06 MB / 279.5 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001895/0.006194, allocations: 11.94 kB / 279.5 MB, free: 11.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009076/0.007101, allocations: 0.6496 MB / 280.2 MB, free: 10.53 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004318/0.007533, allocations: 401.8 kB / 280.6 MB, free: 10.14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000401/0.007934, allocations: 299.3 kB / 280.9 MB, free: 9.844 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00072/0.008654, allocations: 0.9972 MB / 281.9 MB, free: 8.844 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002696/0.008924, allocations: 215 kB / 282.1 MB, free: 8.629 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004066/0.00933, allocations: 0.5457 MB / 282.6 MB, free: 8.082 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003452/0.009675, allocations: 423 kB / 283 MB, free: 7.668 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.023e-05/0.009746, allocations: 80 kB / 283.1 MB, free: 7.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001468/0.009892, allocations: 143.8 kB / 283.3 MB, free: 7.449 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002129/0.01011, allocations: 482.6 kB / 283.7 MB, free: 6.977 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002175/0.01032, allocations: 398.8 kB / 284.1 MB, free: 6.586 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007335/0.01106, allocations: 1.074 MB / 285.2 MB, free: 5.508 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.01106, allocations: 0 / 285.2 MB, free: 5.508 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.01106, allocations: 0 / 285.2 MB, free: 5.508 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.01107, allocations: 3.984 kB / 285.2 MB, free: 5.504 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.00145/0.01252, allocations: 1.662 MB / 286.9 MB, free: 3.805 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.924e-05/0.01255, allocations: 11.97 kB / 286.9 MB, free: 3.793 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001457/0.0127, allocations: 136.8 kB / 287 MB, free: 3.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006368/0.01333, allocations: 0.6763 MB / 287.7 MB, free: 2.949 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.422e-05/0.01343, allocations: 170.1 kB / 287.8 MB, free: 2.754 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.242e-05/0.01348, allocations: 52.38 kB / 287.9 MB, free: 2.703 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005288/0.01401, allocations: 0.8116 MB / 288.7 MB, free: 1.758 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.01402, allocations: 4 kB / 288.7 MB, free: 1.754 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.046e-05/0.01405, allocations: 20 kB / 288.7 MB, free: 1.734 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.01406, allocations: 12 kB / 288.7 MB, free: 1.723 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001612/0.01422, allocations: 118.9 kB / 288.9 MB, free: 1.605 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1138/0.128, allocations: 1.621 MB / 290.5 MB, free: 23.72 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004319/0.1284, allocations: 204.9 kB / 290.7 MB, free: 23.7 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002559/0.1287, allocations: 167.1 kB / 290.8 MB, free: 23.69 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.1287, allocations: 5.75 kB / 290.8 MB, free: 23.69 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.637e-05/0.1287, allocations: 44.83 kB / 290.9 MB, free: 23.65 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.344e-06/0.1287, allocations: 3.203 kB / 290.9 MB, free: 23.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.0007876/0.1295, allocations: 327 kB / 291.2 MB, free: 23.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.777e-05/0.1296, allocations: 264.2 kB / 291.5 MB, free: 23.29 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001292/0.1309, allocations: 1.339 MB / 292.8 MB, free: 23.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.86e-05/0.1309, allocations: 37.95 kB / 292.8 MB, free: 23.08 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002094/0.1311, allocations: 394.5 kB / 293.2 MB, free: 22.99 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.121e-05/0.1312, allocations: 112 kB / 293.3 MB, free: 22.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.721e-05/0.1312, allocations: 78.77 kB / 293.4 MB, free: 22.96 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.501e-05/0.1313, allocations: 319.4 kB / 293.7 MB, free: 22.66 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.29e-05/0.1313, allocations: 40.73 kB / 293.8 MB, free: 22.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000146/0.1315, allocations: 380.4 kB / 294.1 MB, free: 22.26 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00018/0.1317, allocations: 192.8 kB / 294.3 MB, free: 22.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.1317, allocations: 5.094 kB / 294.3 MB, free: 22.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004449/0.1321, allocations: 299.2 kB / 294.6 MB, free: 22.12 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.1321, allocations: 14.06 kB / 294.6 MB, free: 22.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.1321, allocations: 2.625 kB / 294.6 MB, free: 22.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001517/0.1323, allocations: 46.25 kB / 294.7 MB, free: 22.11 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002762/0.1326, allocations: 106.1 kB / 294.8 MB, free: 22.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00072/0.1333, allocations: 1.423 MB / 296.2 MB, free: 20.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002023/0.1335, allocations: 49.16 kB / 296.3 MB, free: 20.83 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.947e-05/0.1335, allocations: 12.55 kB / 296.3 MB, free: 20.83 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.0001526/0.1337, allocations: 136.8 kB / 296.4 MB, free: 20.71 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.1338, allocations: 89.27 kB / 296.5 MB, free: 20.71 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001014/0.1339, allocations: 126.3 kB / 296.6 MB, free: 20.69 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.1339, allocations: 3.406 kB / 296.6 MB, free: 20.69 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1339, allocations: 3.938 kB / 296.6 MB, free: 20.68 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.1339, allocations: 2.016 kB / 296.6 MB, free: 20.68 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009929/0.1349, allocations: 0.7959 MB / 297.4 MB, free: 20.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.1349, allocations: 1.344 kB / 297.4 MB, free: 20.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002239/0.1351, allocations: 84.47 kB / 297.5 MB, free: 20.46 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.417e-05/0.1352, allocations: 31.97 kB / 297.5 MB, free: 20.45 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.259e-05/0.1352, allocations: 12.52 kB / 297.6 MB, free: 20.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005703/0.1358, allocations: 1.398 MB / 299 MB, free: 19.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1358, allocations: 1.344 kB / 299 MB, free: 19.18 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004276/0.1362, allocations: 422.7 kB / 299.4 MB, free: 19.01 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002082/0.1364, allocations: 168.8 kB / 299.5 MB, free: 18.94 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.086e-05/0.1365, allocations: 11.86 kB / 299.5 MB, free: 18.94 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001873/0.1367, allocations: 32.38 kB / 299.6 MB, free: 18.94 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.087e-05/0.1368, allocations: 38.64 kB / 299.6 MB, free: 18.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.1368, allocations: 5.828 kB / 299.6 MB, free: 18.93 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0007327/0.1375, allocations: 0.7265 MB / 300.3 MB, free: 18.88 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1375, allocations: 0 / 300.3 MB, free: 18.88 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004789/0.138, allocations: 212.6 kB / 300.6 MB, free: 18.86 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.001261/0.1392, allocations: 0.5902 MB / 301.1 MB, free: 18.7 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003944/0.1396, allocations: 298.7 kB / 301.4 MB, free: 18.57 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.701e-05/0.1397, allocations: 14.78 kB / 301.4 MB, free: 18.57 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001779/0.1398, allocations: 213.7 kB / 301.7 MB, free: 18.45 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000488/0.1403, allocations: 199.7 kB / 301.9 MB, free: 18.43 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002397/0.1427, allocations: 2.049 MB / 303.9 MB, free: 17.48 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002552/0.143, allocations: 299.3 kB / 304.2 MB, free: 17.41 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002669/0.1432, allocations: 123.9 kB / 304.3 MB, free: 17.38 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003959/0.1436, allocations: 252.4 kB / 304.6 MB, free: 17.33 MB / 266.7 MB Notification: Performance of SimCode: time 1.503e-06/0.1436, allocations: 0 / 304.6 MB, free: 17.33 MB / 266.7 MB Notification: Performance of Templates: time 0.01715/0.1608, allocations: 14.91 MB / 319.5 MB, free: 5.777 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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: 2.8663237849250436]