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.001303/0.001303, allocations: 79.73 kB / 21.25 MB, free: 396 kB / 14.72 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.001566/0.001566, allocations: 161.6 kB / 24.49 MB, free: 3.453 MB / 14.72 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 1.42/1.42, allocations: 177.2 MB / 204.9 MB, free: 9.008 MB / 190.1 MB " [Timeout remaining time 178] 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.1..v|battery.capacitor.2..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.1..v|battery.capacitor.2..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 0.001573/0.001573, allocations: 48.45 kB / 325.6 MB, free: 268 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08842/0.08999, allocations: 53.35 MB / 378.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005475/0.09547, allocations: 3.692 MB / 382.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003286/0.09875, allocations: 1.944 MB / 384.5 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004227/0.09918, allocations: 11.94 kB / 384.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001537/0.1007, allocations: 0.5681 MB / 385.1 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007119/0.1014, allocations: 394 kB / 385.5 MB, free: 9.027 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006491/0.1021, allocations: 291.5 kB / 385.8 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001144/0.1032, allocations: 0.9857 MB / 386.8 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00039/0.1036, allocations: 213 kB / 387 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004339/0.104, allocations: 398.6 kB / 387.4 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006368/0.1047, allocations: 498.2 kB / 387.9 MB, free: 6.668 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001231/0.1048, allocations: 80 kB / 387.9 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002681/0.1051, allocations: 144 kB / 388.1 MB, free: 6.449 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004003/0.1055, allocations: 470.7 kB / 388.5 MB, free: 5.988 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004939/0.106, allocations: 497 kB / 389 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001817/0.1078, allocations: 1.79 MB / 390.8 MB, free: 3.703 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1078, allocations: 0 / 390.8 MB, free: 3.703 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1078, allocations: 0 / 390.8 MB, free: 3.703 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.526e-05/0.1078, allocations: 4 kB / 390.8 MB, free: 3.699 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.003098/0.1109, allocations: 1.804 MB / 392.6 MB, free: 1.852 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.1109, allocations: 8.031 kB / 392.6 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002443/0.1112, allocations: 171.9 kB / 392.8 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001934/0.1131, allocations: 1.134 MB / 393.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001803/0.1133, allocations: 174.1 kB / 394.1 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.106e-05/0.1134, allocations: 55.89 kB / 394.2 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/0.1148, allocations: 1.015 MB / 395.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.1148, allocations: 0 / 395.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.704e-05/0.1149, allocations: 24 kB / 395.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.586e-05/0.1149, allocations: 12 kB / 395.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008349/0.1157, allocations: 435.7 kB / 395.6 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004372/0.1201, allocations: 2.51 MB / 398.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.1211, allocations: 398.5 kB / 398.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006646/0.1218, allocations: 296.7 kB / 398.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.981e-05/0.1218, allocations: 4 kB / 398.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/0.1219, allocations: 38.56 kB / 398.9 MB, free: 11.31 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.954e-06/0.1219, allocations: 0 / 398.9 MB, free: 11.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.001934/0.1238, allocations: 0.7008 MB / 399.6 MB, free: 10.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001549/0.1239, allocations: 265 kB / 399.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002893/0.1268, allocations: 2.214 MB / 402 MB, free: 8.047 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.861e-05/0.1269, allocations: 29.7 kB / 402.1 MB, free: 8.012 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000624/0.1275, allocations: 0.6666 MB / 402.7 MB, free: 7.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.1276, allocations: 111 kB / 402.8 MB, free: 7.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001384/0.1278, allocations: 74.08 kB / 402.9 MB, free: 7.148 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.1279, allocations: 322 kB / 403.2 MB, free: 6.828 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003569/0.1283, allocations: 164.6 kB / 403.4 MB, free: 6.668 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005798/0.1288, allocations: 0.4969 MB / 403.9 MB, free: 6.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007307/0.1296, allocations: 408.6 kB / 404.3 MB, free: 5.641 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.1296, allocations: 0 / 404.3 MB, free: 5.641 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00145/0.131, allocations: 0.645 MB / 404.9 MB, free: 4.984 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.131, allocations: 8 kB / 404.9 MB, free: 4.977 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.131, allocations: 0 / 404.9 MB, free: 4.977 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002987/0.1313, allocations: 72.88 kB / 405 MB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003963/0.1317, allocations: 91.88 kB / 405.1 MB, free: 4.812 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001842/0.1336, allocations: 1.633 MB / 406.7 MB, free: 3.078 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004896/0.1341, allocations: 51.89 kB / 406.8 MB, free: 3.027 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.114e-05/0.1341, allocations: 16 kB / 406.8 MB, free: 3.012 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.0006912/0.1348, allocations: 490.2 kB / 407.3 MB, free: 2.523 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002008/0.135, allocations: 139.2 kB / 407.4 MB, free: 2.387 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002188/0.1352, allocations: 157.3 kB / 407.6 MB, free: 2.227 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1352, allocations: 4 kB / 407.6 MB, free: 2.223 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1352, allocations: 3.938 kB / 407.6 MB, free: 2.219 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.1352, allocations: 3.984 kB / 407.6 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002672/0.1379, allocations: 1.428 MB / 409 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1379, allocations: 0 / 409 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003716/0.1383, allocations: 75.95 kB / 409.1 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001976/0.1385, allocations: 56.81 kB / 409.1 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.674e-05/0.1385, allocations: 8 kB / 409.1 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001638/0.1401, allocations: 1.586 MB / 410.7 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1401, allocations: 208 / 410.7 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001581/0.1417, allocations: 0.8067 MB / 411.5 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005806/0.1423, allocations: 259 kB / 411.8 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001137/0.1424, allocations: 12.08 kB / 411.8 MB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004701/0.1429, allocations: 47.95 kB / 411.8 MB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.433e-05/0.143, allocations: 35.88 kB / 411.9 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.376e-05/0.143, allocations: 8 kB / 411.9 MB, free: 13.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002193/0.1452, allocations: 1.587 MB / 413.5 MB, free: 12.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1452, allocations: 0 / 413.5 MB, free: 12.13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007872/0.146, allocations: 215.5 kB / 413.7 MB, free: 11.92 MB / 382.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.001975/0.148, allocations: 494.7 kB / 414.2 MB, free: 11.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00116/0.1491, allocations: 490.3 kB / 414.6 MB, free: 11.15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.184e-06/0.1491, allocations: 11.84 kB / 414.7 MB, free: 11.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005877/0.1497, allocations: 311.1 kB / 415 MB, free: 10.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000998/0.1507, allocations: 180.1 kB / 415.1 MB, free: 10.65 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00459/0.1553, allocations: 2.662 MB / 417.8 MB, free: 7.953 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000795/0.1561, allocations: 0.6603 MB / 418.5 MB, free: 7.262 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004846/0.1566, allocations: 211.5 kB / 418.7 MB, free: 7.051 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001976/0.1568, allocations: 72.48 kB / 418.7 MB, free: 6.98 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.1568, allocations: 0 / 418.7 MB, free: 6.98 MB / 382.1 MB Notification: Performance of Templates: time 0.02684/0.1836, allocations: 14.04 MB / 432.8 MB, free: 9.098 MB / 398.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 5.789412716054358] 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.1915625570109114 0.20678643400000002 0.09579710300000001 Calling exit ...