Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor") translateModel(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.6477/0.6477, allocations: 110.7 MB / 118 MB, free: 10.8 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.00171/0.00171, allocations: 147.1 kB / 143.7 MB, free: 9.953 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.705e-06/7.895e-06, allocations: 0 / 173.5 MB, free: 12.16 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04571/0.04574, allocations: 25.16 MB / 198.6 MB, free: 2.941 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.107/0.1528, allocations: 36.61 MB / 235.2 MB, free: 3.562 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001432/0.1529, allocations: 63.97 kB / 235.3 MB, free: 3.5 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.0157/0.1687, allocations: 6.188 MB / 241.5 MB, free: 13.34 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.1687, allocations: 4 kB / 241.5 MB, free: 13.34 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.0007697/0.1695, allocations: 0.5331 MB / 242 MB, free: 12.77 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.1695, allocations: 11.97 kB / 242 MB, free: 12.75 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.237e-05/0.1696, allocations: 39.47 kB / 242.1 MB, free: 12.72 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003391/0.17, allocations: 262.6 kB / 242.3 MB, free: 12.42 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/0.17, allocations: 12 kB / 242.3 MB, free: 12.41 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.705e-05/0.1701, allocations: 12 kB / 242.3 MB, free: 12.4 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003243/0.1704, allocations: 161.3 kB / 242.5 MB, free: 12.24 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003172/0.1707, allocations: 184.8 kB / 242.7 MB, free: 12.06 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.1707, allocations: 0 / 242.7 MB, free: 12.06 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.224e-05/0.1708, allocations: 0 / 242.7 MB, free: 12.06 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.1708, allocations: 8 kB / 242.7 MB, free: 12.05 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001466/0.1722, allocations: 0.9042 MB / 243.6 MB, free: 11.08 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001918/0.1725, allocations: 118.1 kB / 243.7 MB, free: 10.96 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001901/0.1727, allocations: 93.2 kB / 243.8 MB, free: 10.87 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.967e-05/0.1728, allocations: 89.23 kB / 243.9 MB, free: 10.76 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.1728, allocations: 34.75 kB / 243.9 MB, free: 10.72 MB / 186.7 MB Notification: Performance of pre-optimization done (n=21): time 1.733e-06/0.1728, allocations: 3.938 kB / 243.9 MB, free: 10.71 MB / 186.7 MB Notification: Performance of matching and sorting (n=31): time 0.005579/0.1784, allocations: 1.181 MB / 245.1 MB, free: 9.48 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.608e-05/0.1784, allocations: 55.41 kB / 245.2 MB, free: 9.414 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001848/0.1786, allocations: 191.8 kB / 245.3 MB, free: 9.223 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 2.61e-05/0.1786, allocations: 25.7 kB / 245.4 MB, free: 9.191 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.842e-05/0.1787, allocations: 164.1 kB / 245.5 MB, free: 9.027 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.253e-05/0.1788, allocations: 102.5 kB / 245.6 MB, free: 8.926 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.721e-05/0.1788, allocations: 0 / 245.6 MB, free: 8.926 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 9.928e-05/0.1789, allocations: 338.8 kB / 246 MB, free: 8.586 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001662/0.1791, allocations: 94.39 kB / 246.1 MB, free: 8.496 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001899/0.1793, allocations: 141.1 kB / 246.2 MB, free: 8.34 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002415/0.1796, allocations: 128.5 kB / 246.3 MB, free: 8.215 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1796, allocations: 4 kB / 246.3 MB, free: 8.211 MB / 186.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002246/0.1818, allocations: 490.7 kB / 246.8 MB, free: 7.719 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.1818, allocations: 4 kB / 246.8 MB, free: 7.715 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.1819, allocations: 7.906 kB / 246.8 MB, free: 7.707 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005501/0.1824, allocations: 164.8 kB / 247 MB, free: 7.543 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002709/0.1827, allocations: 57.91 kB / 247 MB, free: 7.488 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003668/0.1864, allocations: 2.611 MB / 249.6 MB, free: 4.734 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002597/0.1867, allocations: 4 kB / 249.6 MB, free: 4.73 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.081e-05/0.1867, allocations: 20.05 kB / 249.7 MB, free: 4.711 MB / 186.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: r_mAirPar.Phi:DUMMY_STATE(unit = "Wb" ) "Magnetic flux from port_p to port_n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.000138/0.1868, allocations: 113.6 kB / 249.8 MB, free: 4.594 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.835e-05/0.1869, allocations: 23.72 kB / 249.8 MB, free: 4.57 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002187/0.1891, allocations: 475 kB / 250.3 MB, free: 4.098 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.269e-06/0.1891, allocations: 4 kB / 250.3 MB, free: 4.094 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1891, allocations: 1.688 kB / 250.3 MB, free: 4.094 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.1891, allocations: 3.984 kB / 250.3 MB, free: 4.09 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002666/0.1918, allocations: 0.8892 MB / 251.2 MB, free: 3.152 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1918, allocations: 4 kB / 251.2 MB, free: 3.148 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002104/0.192, allocations: 39.91 kB / 251.2 MB, free: 3.109 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005002/0.1925, allocations: 158.6 kB / 251.4 MB, free: 2.949 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.276e-05/0.1926, allocations: 3.984 kB / 251.4 MB, free: 2.945 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00356/0.1961, allocations: 2.613 MB / 254 MB, free: 200 kB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.1962, allocations: 4 kB / 254 MB, free: 196 kB / 186.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002423/0.1986, allocations: 0.6945 MB / 254.7 MB, free: 15.46 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.1987, allocations: 128.8 kB / 254.8 MB, free: 15.32 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.347e-05/0.1988, allocations: 3.906 kB / 254.8 MB, free: 15.32 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002677/0.1991, allocations: 11.98 kB / 254.8 MB, free: 15.3 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.653e-05/0.1991, allocations: 19.97 kB / 254.8 MB, free: 15.29 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-05/0.1991, allocations: 8 kB / 254.8 MB, free: 15.28 MB / 202.7 MB Notification: Performance of sort global known variables: time 0.0001219/0.1993, allocations: 152.5 kB / 255 MB, free: 15.13 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0004668/0.1998, allocations: 79.94 kB / 255.1 MB, free: 15.05 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (coil.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 15 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001904/0.1999, allocations: 128.5 kB / 255.2 MB, free: 14.92 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.0006793/0.2006, allocations: 376.6 kB / 255.6 MB, free: 14.54 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2007, allocations: 0 / 255.6 MB, free: 14.54 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000367/0.201, allocations: 253.5 kB / 255.8 MB, free: 14.29 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002493/0.2013, allocations: 23.73 kB / 255.8 MB, free: 14.26 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009926/0.2023, allocations: 472.6 kB / 256.3 MB, free: 13.78 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003946/0.2027, allocations: 0.8018 MB / 257.1 MB, free: 12.96 MB / 202.7 MB Notification: Performance of SimCode: time 2.81e-07/0.2027, allocations: 3.938 kB / 257.1 MB, free: 12.95 MB / 202.7 MB Notification: Performance of Templates: time 0.009177/0.2119, allocations: 4.955 MB / 262.1 MB, free: 8.039 MB / 202.7 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.sim & ./Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe 2>&1)