Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001446/0.001446, allocations: 202.3 kB / 8.54 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.144/1.144, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008635/0.0008635, allocations: 95.05 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09876/0.09965, allocations: 56.89 MB / 343.2 MB, free: 8.625 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09224/0.1919, allocations: 51.48 MB / 394.7 MB, free: 5.094 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2208/0.4127, allocations: 81.48 MB / 476.2 MB, free: 10.93 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001636/0.4129, allocations: 68.66 kB / 476.3 MB, free: 10.91 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.01608/0.429, allocations: 6.87 MB / 483.1 MB, free: 5.711 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.14e-05/0.4291, allocations: 8 kB / 483.1 MB, free: 5.703 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.389e-05/0.4291, allocations: 43.52 kB / 483.2 MB, free: 5.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004698/0.4296, allocations: 363.4 kB / 483.5 MB, free: 5.316 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.4296, allocations: 12 kB / 483.5 MB, free: 5.305 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.139e-05/0.4297, allocations: 19.98 kB / 483.6 MB, free: 5.285 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003491/0.43, allocations: 218 kB / 483.8 MB, free: 5.148 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003979/0.4304, allocations: 291.4 kB / 484.1 MB, free: 4.922 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.4305, allocations: 7.938 kB / 484.1 MB, free: 4.914 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.879e-05/0.4305, allocations: 0 / 484.1 MB, free: 4.914 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.4305, allocations: 8 kB / 484.1 MB, free: 4.906 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001452/0.432, allocations: 1.262 MB / 485.3 MB, free: 3.801 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002082/0.4322, allocations: 103.9 kB / 485.4 MB, free: 3.723 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002241/0.4324, allocations: 131.2 kB / 485.6 MB, free: 3.625 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.953e-05/0.4325, allocations: 0 / 485.6 MB, free: 3.625 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.551e-05/0.4325, allocations: 34.56 kB / 485.6 MB, free: 3.582 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.062e-06/0.4325, allocations: 0 / 485.6 MB, free: 3.582 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.002258/0.4348, allocations: 0.7817 MB / 486.4 MB, free: 2.832 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.514e-05/0.4348, allocations: 55.34 kB / 486.4 MB, free: 2.766 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000224/0.435, allocations: 261.1 kB / 486.7 MB, free: 2.562 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/0.435, allocations: 25.7 kB / 486.7 MB, free: 2.531 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.617e-05/0.4351, allocations: 187.4 kB / 486.9 MB, free: 2.359 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.282e-05/0.4351, allocations: 57.72 kB / 487 MB, free: 2.312 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.233e-05/0.4352, allocations: 0 / 487 MB, free: 2.312 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.038e-05/0.4352, allocations: 342.8 kB / 487.3 MB, free: 1.98 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.4353, allocations: 60.3 kB / 487.3 MB, free: 1.941 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001282/0.4355, allocations: 129.7 kB / 487.5 MB, free: 1.816 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002051/0.4375, allocations: 0.6889 MB / 488.2 MB, free: 1.156 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.4375, allocations: 0 / 488.2 MB, free: 1.156 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.002239/0.4398, allocations: 0.838 MB / 489 MB, free: 372 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.4398, allocations: 4.25 kB / 489 MB, free: 368 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.4398, allocations: 8 kB / 489 MB, free: 360 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.4398, allocations: 4 kB / 489 MB, free: 356 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000194/0.44, allocations: 51.47 kB / 489.1 MB, free: 308 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.4401, allocations: 4 kB / 489.1 MB, free: 304 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000392/0.4405, allocations: 83.78 kB / 489.2 MB, free: 220 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.853e-05/0.4405, allocations: 19.36 kB / 489.2 MB, free: 204 kB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on1,pulseSeries.on2,energy.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.826e-05/0.4406, allocations: 108.8 kB / 489.3 MB, free: 88 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.477e-05/0.4406, allocations: 30.41 kB / 489.3 MB, free: 60 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002572/0.4432, allocations: 0.8146 MB / 490.1 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-06/0.4432, allocations: 1.188 kB / 490.1 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4432, allocations: 0 / 490.1 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.4432, allocations: 3.984 kB / 490.1 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003006/0.4463, allocations: 1.202 MB / 491.3 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.4463, allocations: 0 / 491.3 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001923/0.4465, allocations: 35.55 kB / 491.4 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.4465, allocations: 0 / 491.4 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.4465, allocations: 4.031 kB / 491.4 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.4465, allocations: 9.172 kB / 491.4 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4465, allocations: 0 / 491.4 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002568/0.4491, allocations: 0.992 MB / 492.4 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002776/0.4519, allocations: 1.477 MB / 493.8 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.041e-05/0.452, allocations: 105.2 kB / 494 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.014e-05/0.4521, allocations: 3.062 kB / 494 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004444/0.4525, allocations: 83.98 kB / 494 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001618/0.4527, allocations: 61.86 kB / 494.1 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.2e-05/0.4527, allocations: 4 kB / 494.1 MB, free: 11.53 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000207/0.4529, allocations: 215.2 kB / 494.3 MB, free: 11.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009469/0.4539, allocations: 86.69 kB / 494.4 MB, free: 11.29 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000151/0.454, allocations: 108.3 kB / 494.5 MB, free: 11.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002971/0.4544, allocations: 169.8 kB / 494.7 MB, free: 11.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.4544, allocations: 0 / 494.7 MB, free: 11.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001622/0.4545, allocations: 105.8 kB / 494.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/0.4548, allocations: 43.86 kB / 494.8 MB, free: 10.95 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.4561, allocations: 0.545 MB / 495.4 MB, free: 10.42 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004262/0.4566, allocations: 0.8166 MB / 496.2 MB, free: 9.578 MB / 362.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4566, allocations: 0 / 496.2 MB, free: 9.578 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge_fmu --startTime=0 --stopTime=720 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1)