Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 76.05 kB / 21.24 MB, free: 400 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 156.9 kB / 24.48 MB, free: 3.465 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 173.4 MB / 201.1 MB, free: 12.69 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 51.02 kB / 319.4 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.098/0.09958, allocations: 52.15 MB / 371.5 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005603/0.1052, allocations: 3.666 MB / 375.2 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003079/0.1083, allocations: 1.788 MB / 377 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002493/0.1085, allocations: 15.88 kB / 377 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001281/0.1098, allocations: 0.5798 MB / 377.6 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006353/0.1104, allocations: 346.3 kB / 377.9 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006085/0.111, allocations: 294.7 kB / 378.2 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001165/0.1122, allocations: 0.9819 MB / 379.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004254/0.1126, allocations: 213 kB / 379.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004383/0.1131, allocations: 390.7 kB / 379.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006586/0.1137, allocations: 498.2 kB / 380.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001276/0.1138, allocations: 80 kB / 380.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000261/0.1141, allocations: 140 kB / 380.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004314/0.1145, allocations: 474.6 kB / 381 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005231/0.1151, allocations: 489.1 kB / 381.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001876/0.1169, allocations: 1.782 MB / 383.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1169, allocations: 4 kB / 383.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1169, allocations: 0 / 383.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.64e-05/0.117, allocations: 4 kB / 383.2 MB, free: 11.64 MB / 350.1 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.003232/0.1202, allocations: 1.781 MB / 385 MB, free: 9.812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.1202, allocations: 8.922 kB / 385 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002677/0.1205, allocations: 171.8 kB / 385.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001961/0.1225, allocations: 1.137 MB / 386.3 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001856/0.1226, allocations: 170.1 kB / 386.5 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.693e-05/0.1227, allocations: 51.94 kB / 386.5 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/0.1241, allocations: 1.011 MB / 387.5 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.1241, allocations: 4 kB / 387.6 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.62e-05/0.1242, allocations: 24 kB / 387.6 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.998e-05/0.1242, allocations: 19.98 kB / 387.6 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008492/0.125, allocations: 435.7 kB / 388 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004255/0.1293, allocations: 2.506 MB / 390.5 MB, free: 4.016 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001047/0.1303, allocations: 402.5 kB / 390.9 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000671/0.131, allocations: 293.1 kB / 391.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.949e-05/0.131, allocations: 4 kB / 391.2 MB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.705e-05/0.1311, allocations: 42.56 kB / 391.3 MB, free: 3.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.154e-06/0.1311, allocations: 0 / 391.3 MB, free: 3.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001955/0.1331, allocations: 0.6886 MB / 391.9 MB, free: 2.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001696/0.1332, allocations: 265 kB / 392.2 MB, free: 2.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002873/0.1361, allocations: 2.201 MB / 394.4 MB, free: 32 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.824e-05/0.1362, allocations: 33.78 kB / 394.4 MB, free: 15.99 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006194/0.1368, allocations: 0.6509 MB / 395.1 MB, free: 15.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.1369, allocations: 115 kB / 395.2 MB, free: 15.22 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001488/0.137, allocations: 82.02 kB / 395.3 MB, free: 15.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1372, allocations: 318 kB / 395.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003607/0.1375, allocations: 160.7 kB / 395.7 MB, free: 14.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005948/0.1381, allocations: 0.4982 MB / 396.2 MB, free: 14.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007524/0.1389, allocations: 409 kB / 396.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.1389, allocations: 0 / 396.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001433/0.1403, allocations: 0.6416 MB / 397.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.1403, allocations: 8 kB / 397.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.1403, allocations: 0 / 397.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002939/0.1406, allocations: 68.75 kB / 397.4 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004036/0.141, allocations: 96 kB / 397.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001853/0.1429, allocations: 1.629 MB / 399.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004571/0.1433, allocations: 59.84 kB / 399.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.765e-05/0.1434, allocations: 8 kB / 399.1 MB, free: 11.01 MB / 366.1 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.0006337/0.144, allocations: 485.6 kB / 399.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001921/0.1442, allocations: 139.1 kB / 399.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002171/0.1444, allocations: 153.2 kB / 399.9 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.1444, allocations: 7.984 kB / 399.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1444, allocations: 3.938 kB / 399.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.1444, allocations: 0 / 399.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002825/0.1473, allocations: 1.431 MB / 401.4 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-06/0.1473, allocations: 0 / 401.4 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003608/0.1476, allocations: 71.88 kB / 401.4 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001894/0.1478, allocations: 56.81 kB / 401.5 MB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.709e-05/0.1478, allocations: 8.062 kB / 401.5 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001741/0.1496, allocations: 1.586 MB / 403.1 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1496, allocations: 0 / 403.1 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001676/0.1513, allocations: 0.8077 MB / 403.9 MB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005783/0.1518, allocations: 258.9 kB / 404.1 MB, free: 5.816 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.1519, allocations: 11.98 kB / 404.1 MB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004905/0.1524, allocations: 47.95 kB / 404.2 MB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.519e-05/0.1525, allocations: 31.89 kB / 404.2 MB, free: 5.727 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-05/0.1525, allocations: 8 kB / 404.2 MB, free: 5.719 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002222/0.1548, allocations: 1.579 MB / 405.8 MB, free: 4.141 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1548, allocations: 0 / 405.8 MB, free: 4.141 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008806/0.1557, allocations: 203.7 kB / 406 MB, free: 3.941 MB / 366.1 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.001934/0.1576, allocations: 0.5006 MB / 406.5 MB, free: 3.648 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001149/0.1587, allocations: 494.3 kB / 407 MB, free: 3.152 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.1587, allocations: 4 kB / 407 MB, free: 3.148 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005767/0.1593, allocations: 294.5 kB / 407.3 MB, free: 2.848 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009473/0.1603, allocations: 198.1 kB / 407.5 MB, free: 2.664 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00407/0.1643, allocations: 2.65 MB / 410.1 MB, free: 15.97 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008171/0.1652, allocations: 0.66 MB / 410.8 MB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004555/0.1656, allocations: 215.5 kB / 411 MB, free: 15.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001977/0.1658, allocations: 68.5 kB / 411.1 MB, free: 15 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1658, allocations: 0 / 411.1 MB, free: 15 MB / 382.1 MB Notification: Performance of Templates: time 0.02654/0.1923, allocations: 14.02 MB / 425.1 MB, free: 1.141 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 5.649033282068558] Failed to read output from testmodel.py, exit status != 0: ['time', 'battery.capacitor[1].v', 'battery.capacitor[2].v', 'battery.limIntegrator.y', 'energy.y'] 0.200261547928676 0.215201253 0.09520226700000001 Calling exit ...