Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor") translateModel(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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/Complex 3.2.2+maint.om/package.mo): time 0.001498/0.001498, allocations: 191.6 kB / 8.135 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.182/1.182, allocations: 194.2 MB / 202.8 MB, free: 8.75 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001818/0.001818, allocations: 111.1 kB / 247.7 MB, free: 6.242 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.855e-06/7.895e-06, allocations: 3.938 kB / 297.6 MB, free: 8.008 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07436/0.07438, allocations: 44.49 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2119/0.2863, allocations: 74.19 MB / 416.2 MB, free: 20.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001806/0.2865, allocations: 76.23 kB / 416.3 MB, free: 20.84 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01755/0.3041, allocations: 6.506 MB / 422.8 MB, free: 15.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.826e-05/0.3042, allocations: 8 kB / 422.8 MB, free: 15.56 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008475/0.305, allocations: 0.5268 MB / 423.4 MB, free: 15.01 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.3051, allocations: 12.02 kB / 423.4 MB, free: 15 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001097/0.3052, allocations: 35.62 kB / 423.4 MB, free: 14.96 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003921/0.3056, allocations: 260.1 kB / 423.7 MB, free: 14.69 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.043e-05/0.3056, allocations: 8 kB / 423.7 MB, free: 14.68 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.213e-05/0.3057, allocations: 16 kB / 423.7 MB, free: 14.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000332/0.306, allocations: 175.4 kB / 423.9 MB, free: 14.55 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003218/0.3063, allocations: 197.6 kB / 424 MB, free: 14.4 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.3064, allocations: 4 kB / 424.1 MB, free: 14.39 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.525e-05/0.3064, allocations: 0 / 424.1 MB, free: 14.39 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.3064, allocations: 4 kB / 424.1 MB, free: 14.39 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001434/0.3078, allocations: 0.9647 MB / 425 MB, free: 13.53 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002042/0.3081, allocations: 131.6 kB / 425.1 MB, free: 13.43 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001694/0.3082, allocations: 94.28 kB / 425.2 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.302e-05/0.3083, allocations: 5.875 kB / 425.2 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.68e-05/0.3083, allocations: 34 kB / 425.3 MB, free: 13.32 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 2.034e-06/0.3083, allocations: 0 / 425.3 MB, free: 13.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.003528/0.3119, allocations: 1.108 MB / 426.4 MB, free: 12.34 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.658e-05/0.3119, allocations: 55.41 kB / 426.4 MB, free: 12.28 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/0.3121, allocations: 187.6 kB / 426.6 MB, free: 12.11 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.156e-05/0.3121, allocations: 25.7 kB / 426.6 MB, free: 12.08 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.825e-05/0.3121, allocations: 163.3 kB / 426.8 MB, free: 11.93 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.615e-05/0.3122, allocations: 110.4 kB / 426.9 MB, free: 11.83 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.82e-05/0.3122, allocations: 0 / 426.9 MB, free: 11.83 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.1e-05/0.3123, allocations: 341.3 kB / 427.2 MB, free: 11.5 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.3125, allocations: 87.8 kB / 427.3 MB, free: 11.45 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/0.3126, allocations: 146.5 kB / 427.5 MB, free: 11.33 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001786/0.3128, allocations: 121.4 kB / 427.6 MB, free: 11.26 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.3128, allocations: 0 / 427.6 MB, free: 11.26 MB / 314.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001489/0.3143, allocations: 479.6 kB / 428.1 MB, free: 10.88 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.3143, allocations: 4.781 kB / 428.1 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.3144, allocations: 13.94 kB / 428.1 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008854/0.3153, allocations: 186.1 kB / 428.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002876/0.3156, allocations: 59.89 kB / 428.3 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003904/0.3195, allocations: 3.575 MB / 431.9 MB, free: 7.309 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002936/0.3198, allocations: 4 kB / 431.9 MB, free: 7.305 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.309e-05/0.3198, allocations: 20.67 kB / 431.9 MB, free: 7.289 MB / 314.7 MB 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 (28): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 9.664e-05/0.3199, allocations: 108.8 kB / 432 MB, free: 7.176 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.627e-05/0.32, allocations: 27.62 kB / 432.1 MB, free: 7.148 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.019e-05/0.3201, allocations: 37.64 kB / 432.1 MB, free: 7.137 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.3201, allocations: 4 kB / 432.1 MB, free: 7.133 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.046e-06/0.3201, allocations: 8.062 kB / 432.1 MB, free: 7.125 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.3201, allocations: 1.875 kB / 432.1 MB, free: 7.125 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001921/0.3221, allocations: 0.8574 MB / 433 MB, free: 6.395 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.3221, allocations: 4 kB / 433 MB, free: 6.391 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002393/0.3223, allocations: 35.86 kB / 433 MB, free: 6.359 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008296/0.3232, allocations: 197.3 kB / 433.2 MB, free: 6.195 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.267e-05/0.3232, allocations: 3.938 kB / 433.2 MB, free: 6.191 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003641/0.3269, allocations: 3.566 MB / 436.8 MB, free: 2.848 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.3269, allocations: 8.031 kB / 436.8 MB, free: 2.84 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001679/0.3286, allocations: 0.6753 MB / 437.4 MB, free: 2.293 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.287e-05/0.3287, allocations: 100.7 kB / 437.5 MB, free: 2.176 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.63e-05/0.3287, allocations: 3.984 kB / 437.5 MB, free: 2.172 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002676/0.329, allocations: 8 kB / 437.6 MB, free: 2.164 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.659e-05/0.3291, allocations: 19.16 kB / 437.6 MB, free: 2.148 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.34e-05/0.3291, allocations: 11.38 kB / 437.6 MB, free: 2.141 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001107/0.3292, allocations: 154.1 kB / 437.7 MB, free: 2.016 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006256/0.3299, allocations: 87.94 kB / 437.8 MB, free: 1.93 MB / 314.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 (18): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001693/0.33, allocations: 115.2 kB / 437.9 MB, free: 1.809 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007074/0.3307, allocations: 464.8 kB / 438.4 MB, free: 1.43 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3308, allocations: 1.344 kB / 438.4 MB, free: 1.43 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004218/0.3312, allocations: 364.6 kB / 438.7 MB, free: 1.105 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002359/0.3314, allocations: 12.91 kB / 438.8 MB, free: 1.094 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.3326, allocations: 483.4 kB / 439.2 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002998/0.3329, allocations: 0.8034 MB / 440 MB, free: 15.83 MB / 330.7 MB Notification: Performance of SimCode: time 3.81e-07/0.3329, allocations: 0 / 440 MB, free: 15.83 MB / 330.7 MB Notification: Performance of Templates: time 0.01043/0.3433, allocations: 5.514 MB / 445.6 MB, free: 10.38 MB / 330.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.sim & ./Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe 2>&1)