Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001427/0.001427, allocations: 196.7 kB / 16.14 MB, free: 6.715 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.415/1.415, allocations: 205.1 MB / 222 MB, free: 5.016 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.001786/0.001787, allocations: 47.94 kB / 278.1 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.262, allocations: 46.62 MB / 324.7 MB, free: 1.816 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.007474/0.2695, allocations: 6.417 MB / 331.1 MB, free: 12.76 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004917/0.2744, allocations: 2.559 MB / 333.7 MB, free: 10.7 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001001/0.2755, allocations: 23.19 kB / 333.7 MB, free: 10.7 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002961/0.2785, allocations: 1.187 MB / 334.9 MB, free: 9.824 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002067/0.2806, allocations: 0.6465 MB / 335.5 MB, free: 9.309 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002113/0.2827, allocations: 1.063 MB / 336.6 MB, free: 8.242 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001309/0.284, allocations: 1.04 MB / 337.6 MB, free: 7.191 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001141/0.2852, allocations: 0.7967 MB / 338.4 MB, free: 6.375 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004738/0.2857, allocations: 422.3 kB / 338.8 MB, free: 5.961 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005398/0.2862, allocations: 0.5367 MB / 339.4 MB, free: 5.422 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001066/0.2863, allocations: 68 kB / 339.4 MB, free: 5.355 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008763/0.2872, allocations: 379.6 kB / 339.8 MB, free: 4.984 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001611/0.2874, allocations: 207.2 kB / 340 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004322/0.2878, allocations: 0.5129 MB / 340.5 MB, free: 4.266 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001357/0.2892, allocations: 1.468 MB / 342 MB, free: 2.793 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2892, allocations: 0 / 342 MB, free: 2.793 MB / 270.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.2892, allocations: 3.938 kB / 342 MB, free: 2.789 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.453e-05/0.2892, allocations: 0 / 342 MB, free: 2.789 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: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.004202/0.2934, allocations: 1.663 MB / 343.6 MB, free: 1.074 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.2935, allocations: 8.031 kB / 343.7 MB, free: 1.066 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00392/0.2974, allocations: 0.5733 MB / 344.2 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006869/0.2981, allocations: 0.4902 MB / 344.7 MB, free: 15.96 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.889e-05/0.2982, allocations: 86.3 kB / 344.8 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001514/0.2984, allocations: 116 kB / 344.9 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001985/0.3003, allocations: 1.007 MB / 345.9 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.907e-05/0.3004, allocations: 7.984 kB / 345.9 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.921e-05/0.3005, allocations: 44 kB / 346 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.326e-05/0.3005, allocations: 28 kB / 346 MB, free: 14.65 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001868/0.3024, allocations: 1.024 MB / 347 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006461/0.3089, allocations: 3.877 MB / 350.9 MB, free: 9.512 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002114/0.311, allocations: 2.064 MB / 353 MB, free: 7.18 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007678/0.3118, allocations: 439.7 kB / 353.4 MB, free: 6.75 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001149/0.3119, allocations: 102.1 kB / 353.5 MB, free: 6.633 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008666/0.3128, allocations: 486.4 kB / 354 MB, free: 6.129 MB / 286.1 MB Notification: Performance of pre-optimization done (n=98): time 3.637e-06/0.3128, allocations: 0 / 354 MB, free: 6.129 MB / 286.1 MB Notification: Performance of matching and sorting (n=127): time 0.008918/0.3218, allocations: 4.01 MB / 358 MB, free: 2 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.576e-05/0.3219, allocations: 141.5 kB / 358.1 MB, free: 1.832 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004764/0.3224, allocations: 413.8 kB / 358.5 MB, free: 1.422 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.642e-05/0.3224, allocations: 45.7 kB / 358.6 MB, free: 1.371 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003258/0.3228, allocations: 447.4 kB / 359 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002924/0.3231, allocations: 425.7 kB / 359.4 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003013/0.3234, allocations: 218.9 kB / 359.6 MB, free: 288 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.3235, allocations: 386.7 kB / 360 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006896/0.3242, allocations: 358.5 kB / 360.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008554/0.3251, allocations: 0.5837 MB / 360.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001582/0.3267, allocations: 1.006 MB / 362 MB, free: 13.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.3267, allocations: 0 / 362 MB, free: 13.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002581/0.3293, allocations: 1.436 MB / 363.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.3293, allocations: 8 kB / 363.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/0.3294, allocations: 8 kB / 363.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009263/0.3303, allocations: 355.1 kB / 363.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009004/0.3312, allocations: 227.6 kB / 364 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007516/0.3387, allocations: 7.734 MB / 371.7 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008219/0.3396, allocations: 47.98 kB / 371.8 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001271/0.3397, allocations: 48.06 kB / 371.8 MB, free: 3.383 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,4,100.0%), (1,2,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005207/0.3403, allocations: 265.6 kB / 372.1 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.3404, allocations: 71.16 kB / 372.1 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002553/0.343, allocations: 1.329 MB / 373.5 MB, free: 1.695 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/0.343, allocations: 16 kB / 373.5 MB, free: 1.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.589e-05/0.343, allocations: 11.94 kB / 373.5 MB, free: 1.668 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.343, allocations: 7.969 kB / 373.5 MB, free: 1.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004242/0.3473, allocations: 2.553 MB / 376 MB, free: 15.01 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.3473, allocations: 4 kB / 376.1 MB, free: 15.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007668/0.3481, allocations: 156 kB / 376.2 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008341/0.3489, allocations: 331.2 kB / 376.5 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.377e-05/0.349, allocations: 27.94 kB / 376.6 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007024/0.356, allocations: 7.438 MB / 384 MB, free: 6.523 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.3561, allocations: 0 / 384 MB, free: 6.523 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003345/0.3594, allocations: 1.851 MB / 385.8 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000368/0.3598, allocations: 224.1 kB / 386.1 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001263/0.36, allocations: 24 kB / 386.1 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005653/0.3605, allocations: 35.98 kB / 386.1 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002002/0.3607, allocations: 100.9 kB / 386.2 MB, free: 4.227 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.288e-05/0.3608, allocations: 39.98 kB / 386.3 MB, free: 4.188 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003074/0.3611, allocations: 279.1 kB / 386.5 MB, free: 3.918 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3611, allocations: 0 / 386.5 MB, free: 3.918 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001234/0.3624, allocations: 320 kB / 386.8 MB, free: 3.605 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,19,100.0%), (1,2,100.0%), (1,4,100.0%), (1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003072/0.3627, allocations: 175.1 kB / 387 MB, free: 3.426 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003244/0.3659, allocations: 1.633 MB / 388.6 MB, free: 1.742 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.366, allocations: 0 / 388.6 MB, free: 1.742 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001979/0.368, allocations: 1.154 MB / 389.8 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006673/0.3686, allocations: 81.48 kB / 389.9 MB, free: 464 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00419/0.3728, allocations: 2.477 MB / 392.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006511/0.3735, allocations: 1.028 MB / 393.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005375/0.3741, allocations: 102.4 kB / 393.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001895/0.3743, allocations: 63.42 kB / 393.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3743, allocations: 0 / 393.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of Templates: time 0.02003/0.3943, allocations: 10.59 MB / 404.1 MB, free: 2.105 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1)