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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001662/0.001662, allocations: 190.3 kB / 16.25 MB, free: 6.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.412/1.412, allocations: 205.1 MB / 222.1 MB, free: 4.688 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 56.34 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2501, allocations: 46.63 MB / 324.8 MB, free: 2.281 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor): time 0.00384/0.254, allocations: 2.716 MB / 327.6 MB, free: 156 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001557/0.2556, allocations: 0.892 MB / 328.4 MB, free: 15.43 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000164/0.2558, allocations: 4.562 kB / 328.5 MB, free: 15.43 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000319/0.2561, allocations: 50.47 kB / 328.5 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003114/0.2564, allocations: 93.97 kB / 328.6 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002697/0.2567, allocations: 83.62 kB / 328.7 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000429/0.2572, allocations: 347.3 kB / 329 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002311/0.2574, allocations: 112 kB / 329.1 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000217/0.2576, allocations: 146.1 kB / 329.3 MB, free: 14.9 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002233/0.2578, allocations: 140.6 kB / 329.4 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.666e-05/0.2579, allocations: 28.72 kB / 329.4 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.783e-05/0.258, allocations: 30.53 kB / 329.5 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.653e-05/0.2581, allocations: 67.36 kB / 329.5 MB, free: 14.74 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002102/0.2583, allocations: 168.7 kB / 329.7 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004498/0.2588, allocations: 354.6 kB / 330 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.2588, allocations: 0 / 330 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.2588, allocations: 4 kB / 330 MB, free: 14.35 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.2588, allocations: 1.156 kB / 330 MB, free: 14.35 MB / 270.1 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.001175/0.26, allocations: 0.5964 MB / 330.6 MB, free: 13.82 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.26, allocations: 16.08 kB / 330.7 MB, free: 13.81 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.511e-05/0.2601, allocations: 33.06 kB / 330.7 MB, free: 13.8 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003163/0.2605, allocations: 265 kB / 330.9 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.212e-05/0.2605, allocations: 20.5 kB / 331 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.768e-05/0.2606, allocations: 30.06 kB / 331 MB, free: 13.5 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005524/0.2611, allocations: 248.9 kB / 331.2 MB, free: 13.35 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.2611, allocations: 0 / 331.2 MB, free: 13.35 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.204e-05/0.2612, allocations: 15.5 kB / 331.3 MB, free: 13.34 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.2612, allocations: 5.5 kB / 331.3 MB, free: 13.34 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004571/0.2617, allocations: 211 kB / 331.5 MB, free: 13.24 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001671/0.2633, allocations: 0.9988 MB / 332.5 MB, free: 12.38 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004701/0.2638, allocations: 205.3 kB / 332.7 MB, free: 12.27 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002774/0.2641, allocations: 109.1 kB / 332.8 MB, free: 12.21 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.2642, allocations: 2.188 kB / 332.8 MB, free: 12.21 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.2642, allocations: 40.75 kB / 332.8 MB, free: 12.17 MB / 270.1 MB Notification: Performance of pre-optimization done (n=23): time 1.292e-06/0.2642, allocations: 3.938 kB / 332.8 MB, free: 12.16 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.0052/0.2694, allocations: 1.537 MB / 334.4 MB, free: 10.57 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/0.2695, allocations: 59.34 kB / 334.4 MB, free: 10.5 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002348/0.2697, allocations: 233 kB / 334.6 MB, free: 10.26 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.227e-05/0.2698, allocations: 37.64 kB / 334.7 MB, free: 10.21 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.2699, allocations: 176.2 kB / 334.8 MB, free: 10.04 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.958e-05/0.27, allocations: 122.2 kB / 335 MB, free: 9.918 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.2701, allocations: 66.06 kB / 335 MB, free: 9.844 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.2702, allocations: 334.8 kB / 335.4 MB, free: 9.508 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002399/0.2705, allocations: 108.7 kB / 335.5 MB, free: 9.402 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002623/0.2707, allocations: 165.3 kB / 335.6 MB, free: 9.227 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005044/0.2713, allocations: 283.8 kB / 335.9 MB, free: 8.934 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2713, allocations: 0 / 335.9 MB, free: 8.934 MB / 270.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001578/0.2729, allocations: 0.5409 MB / 336.4 MB, free: 8.379 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.2729, allocations: 7.984 kB / 336.5 MB, free: 8.371 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.2729, allocations: 3.938 kB / 336.5 MB, free: 8.367 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001366/0.2743, allocations: 237.5 kB / 336.7 MB, free: 8.129 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002779/0.2746, allocations: 59.91 kB / 336.7 MB, free: 8.07 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00475/0.2793, allocations: 4.133 MB / 340.9 MB, free: 3.66 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002658/0.2796, allocations: 20.02 kB / 340.9 MB, free: 3.641 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.437e-05/0.2796, allocations: 12.06 kB / 340.9 MB, free: 3.629 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001724/0.2798, allocations: 149.7 kB / 341.1 MB, free: 3.473 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.387e-05/0.2799, allocations: 23.72 kB / 341.1 MB, free: 3.449 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.894e-05/0.28, allocations: 46.95 kB / 341.1 MB, free: 3.402 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.28, allocations: 4 kB / 341.1 MB, free: 3.398 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.28, allocations: 0 / 341.1 MB, free: 3.398 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.28, allocations: 3.984 kB / 341.1 MB, free: 3.395 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002073/0.2821, allocations: 0.9881 MB / 342.1 MB, free: 2.34 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.2821, allocations: 0 / 342.1 MB, free: 2.34 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002221/0.2824, allocations: 47.91 kB / 342.2 MB, free: 2.293 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001256/0.2836, allocations: 233.6 kB / 342.4 MB, free: 2.059 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.384e-05/0.2837, allocations: 15.98 kB / 342.4 MB, free: 2.043 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004533/0.2882, allocations: 4.13 MB / 346.5 MB, free: 13.64 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.2882, allocations: 0 / 346.5 MB, free: 13.64 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00188/0.2901, allocations: 0.7288 MB / 347.3 MB, free: 12.88 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.602e-05/0.2902, allocations: 96.86 kB / 347.4 MB, free: 12.77 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.507e-05/0.2903, allocations: 15.92 kB / 347.4 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.2905, allocations: 12 kB / 347.4 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.854e-05/0.2906, allocations: 35.89 kB / 347.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.999e-05/0.2907, allocations: 4.062 kB / 347.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001669/0.2908, allocations: 172.5 kB / 347.6 MB, free: 12.53 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2908, allocations: 0 / 347.6 MB, free: 12.53 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006178/0.2915, allocations: 100 kB / 347.7 MB, free: 12.43 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001318/0.2916, allocations: 99.25 kB / 347.8 MB, free: 12.32 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.2926, allocations: 0.5789 MB / 348.4 MB, free: 11.72 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2926, allocations: 0 / 348.4 MB, free: 11.72 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005395/0.2932, allocations: 429.5 kB / 348.8 MB, free: 11.27 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.2935, allocations: 20.44 kB / 348.8 MB, free: 11.25 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/0.2949, allocations: 0.8336 MB / 349.6 MB, free: 10.39 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/0.2952, allocations: 0.7798 MB / 350.4 MB, free: 9.586 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001038/0.2953, allocations: 22.3 kB / 350.4 MB, free: 9.566 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.07e-05/0.2954, allocations: 15.44 kB / 350.5 MB, free: 9.551 MB / 286.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2954, allocations: 0 / 350.5 MB, free: 9.551 MB / 286.1 MB Notification: Performance of Templates: time 0.009399/0.3048, allocations: 5.41 MB / 355.9 MB, free: 4.141 MB / 286.1 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)