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.001814/0.001814, allocations: 77.31 kB / 21.25 MB, free: 0.5469 MB / 14.72 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.002208/0.002208, allocations: 162.5 kB / 24.5 MB, free: 3.711 MB / 14.72 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 1.462/1.462, allocations: 177.1 MB / 204.7 MB, free: 8.988 MB / 190.1 MB " [Timeout remaining time 178] 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.1..v|battery.capacitor.2..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.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001922/0.001922, allocations: 57.95 kB / 325.5 MB, free: 200 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1078, allocations: 53.39 MB / 378.9 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.006286/0.1141, allocations: 3.711 MB / 382.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003715/0.1178, allocations: 1.943 MB / 384.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004097/0.1182, allocations: 19.88 kB / 384.6 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001396/0.1196, allocations: 0.5603 MB / 385.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008359/0.1204, allocations: 398 kB / 385.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007281/0.1212, allocations: 298.9 kB / 385.8 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001185/0.1224, allocations: 0.978 MB / 386.8 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004076/0.1228, allocations: 221 kB / 387 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005082/0.1233, allocations: 390.8 kB / 387.4 MB, free: 6.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006444/0.1239, allocations: 498.2 kB / 387.9 MB, free: 6.477 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.124, allocations: 84 kB / 388 MB, free: 6.395 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002766/0.1243, allocations: 132 kB / 388.1 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004435/0.1248, allocations: 482.6 kB / 388.6 MB, free: 5.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005687/0.1253, allocations: 497 kB / 389 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001831/0.1272, allocations: 1.782 MB / 390.8 MB, free: 3.516 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1272, allocations: 0 / 390.8 MB, free: 3.516 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.1272, allocations: 3.984 kB / 390.8 MB, free: 3.512 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.044e-05/0.1272, allocations: 0 / 390.8 MB, free: 3.512 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.003097/0.1303, allocations: 1.808 MB / 392.6 MB, free: 1.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.1303, allocations: 15.97 kB / 392.7 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002393/0.1306, allocations: 167.9 kB / 392.8 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001791/0.1324, allocations: 1.126 MB / 393.9 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001621/0.1325, allocations: 178.1 kB / 394.1 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.356e-05/0.1326, allocations: 56.33 kB / 394.2 MB, free: 64 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/0.134, allocations: 1.015 MB / 395.2 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.134, allocations: 0 / 395.2 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.945e-05/0.1341, allocations: 24 kB / 395.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.1341, allocations: 12 kB / 395.2 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008403/0.1349, allocations: 435.7 kB / 395.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004481/0.1394, allocations: 2.51 MB / 398.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.1405, allocations: 398.5 kB / 398.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007113/0.1412, allocations: 290.7 kB / 398.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.1412, allocations: 8 kB / 398.8 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.609e-05/0.1413, allocations: 38.56 kB / 398.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.254e-06/0.1413, allocations: 0 / 398.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.002043/0.1433, allocations: 0.6969 MB / 399.6 MB, free: 10.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001679/0.1435, allocations: 268.9 kB / 399.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00317/0.1467, allocations: 2.214 MB / 402.1 MB, free: 7.859 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.674e-05/0.1467, allocations: 33.7 kB / 402.1 MB, free: 7.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006866/0.1474, allocations: 0.6627 MB / 402.7 MB, free: 7.152 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.1475, allocations: 115.1 kB / 402.9 MB, free: 7.039 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/0.1477, allocations: 74.06 kB / 402.9 MB, free: 6.957 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1478, allocations: 322 kB / 403.2 MB, free: 6.637 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003727/0.1482, allocations: 168.6 kB / 403.4 MB, free: 6.473 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006564/0.1489, allocations: 0.4904 MB / 403.9 MB, free: 5.879 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008501/0.1497, allocations: 404.6 kB / 404.3 MB, free: 5.453 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1497, allocations: 4 kB / 404.3 MB, free: 5.449 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001651/0.1514, allocations: 0.645 MB / 404.9 MB, free: 4.793 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.1514, allocations: 4 kB / 404.9 MB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.1514, allocations: 4 kB / 405 MB, free: 4.785 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003096/0.1517, allocations: 68.88 kB / 405 MB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000399/0.1521, allocations: 87.89 kB / 405.1 MB, free: 4.629 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002025/0.1541, allocations: 1.633 MB / 406.7 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006021/0.1547, allocations: 47.75 kB / 406.8 MB, free: 2.848 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.331e-05/0.1548, allocations: 19.94 kB / 406.8 MB, free: 2.828 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.0007986/0.1556, allocations: 485.6 kB / 407.3 MB, free: 2.344 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002228/0.1558, allocations: 139.1 kB / 407.4 MB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002426/0.156, allocations: 169.2 kB / 407.6 MB, free: 2.035 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.156, allocations: 4 kB / 407.6 MB, free: 2.031 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.156, allocations: 128 / 407.6 MB, free: 2.031 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.156, allocations: 0 / 407.6 MB, free: 2.031 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002775/0.1588, allocations: 1.435 MB / 409 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1588, allocations: 0 / 409 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003427/0.1592, allocations: 67.95 kB / 409.1 MB, free: 492 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002015/0.1594, allocations: 64.81 kB / 409.1 MB, free: 424 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.927e-05/0.1594, allocations: 8 kB / 409.2 MB, free: 416 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001767/0.1612, allocations: 1.586 MB / 410.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1612, allocations: 0 / 410.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001821/0.163, allocations: 0.8065 MB / 411.6 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005761/0.1636, allocations: 255 kB / 411.8 MB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.1637, allocations: 8 kB / 411.8 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004736/0.1641, allocations: 47.95 kB / 411.9 MB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.409e-05/0.1642, allocations: 35.88 kB / 411.9 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.738e-05/0.1642, allocations: 16.12 kB / 411.9 MB, free: 13.53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002547/0.1668, allocations: 1.583 MB / 413.5 MB, free: 11.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1668, allocations: 4 kB / 413.5 MB, free: 11.94 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007902/0.1676, allocations: 211.6 kB / 413.7 MB, free: 11.73 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.001837/0.1694, allocations: 487.8 kB / 414.2 MB, free: 11.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00122/0.1706, allocations: 498.3 kB / 414.7 MB, free: 10.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.1706, allocations: 0 / 414.7 MB, free: 10.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006262/0.1713, allocations: 307.1 kB / 415 MB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009457/0.1722, allocations: 187.3 kB / 415.1 MB, free: 10.44 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005582/0.1778, allocations: 2.653 MB / 417.8 MB, free: 7.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001242/0.179, allocations: 0.6719 MB / 418.5 MB, free: 7.051 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005027/0.1795, allocations: 203.5 kB / 418.7 MB, free: 6.848 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002359/0.1798, allocations: 68.48 kB / 418.7 MB, free: 6.781 MB / 382.1 MB Notification: Performance of SimCode: time 1.102e-06/0.1798, allocations: 0 / 418.7 MB, free: 6.781 MB / 382.1 MB Notification: Performance of Templates: time 0.02752/0.2073, allocations: 14.04 MB / 432.8 MB, free: 8.852 MB / 398.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 5.89643949107267] 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.21584880608133972 0.231451697 0.10113898 Calling exit ...