Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.NonLinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|fundamentalWavePermabilitySensor.harmonicFlux.mean1.x|fundamentalWavePermabilitySensor.harmonicFlux.mean2.x|fundamentalWavePermabilitySensor.harmonicPotential.mean1.x|fundamentalWavePermabilitySensor.harmonicPotential.mean2.x|r_mLeak.port_p.Phi|rootMeanSquare.mean1.x|rootMeanSquare.mean2.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|fundamentalWavePermabilitySensor.harmonicFlux.mean1.x|fundamentalWavePermabilitySensor.harmonicFlux.mean2.x|fundamentalWavePermabilitySensor.harmonicPotential.mean1.x|fundamentalWavePermabilitySensor.harmonicPotential.mean2.x|r_mLeak.port_p.Phi|rootMeanSquare.mean1.x|rootMeanSquare.mean2.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 105.2 kB / 17.74 MB, free: 5.324 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.001047/0.001047, allocations: 182.5 kB / 18.67 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009606/0.0009606, allocations: 51.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.2071, allocations: 49.43 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.008497/0.2156, allocations: 7.796 MB / 409.2 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004121/0.2198, allocations: 2.994 MB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00041/0.2202, allocations: 27.94 kB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002757/0.223, allocations: 1.335 MB / 413.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001446/0.2244, allocations: 0.7784 MB / 414.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002173/0.2266, allocations: 1.312 MB / 415.7 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001402/0.228, allocations: 1.671 MB / 417.3 MB, free: 8.898 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001514/0.2296, allocations: 1.282 MB / 418.6 MB, free: 7.598 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005856/0.2302, allocations: 0.6578 MB / 419.3 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007901/0.231, allocations: 0.7896 MB / 420.1 MB, free: 6.145 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002093/0.2312, allocations: 171.9 kB / 420.2 MB, free: 5.977 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006994/0.2319, allocations: 471.6 kB / 420.7 MB, free: 5.516 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002815/0.2322, allocations: 374.7 kB / 421.1 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00062/0.2328, allocations: 0.7852 MB / 421.8 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001891/0.2347, allocations: 2.266 MB / 424.1 MB, free: 2.086 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2347, allocations: 0 / 424.1 MB, free: 2.086 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2347, allocations: 0 / 424.1 MB, free: 2.086 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.569e-05/0.2347, allocations: 8 kB / 424.1 MB, free: 2.078 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 371 * Number of variables: 371 Notification: Performance of Generate backend data structure: time 0.005131/0.2399, allocations: 2.133 MB / 426.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.2399, allocations: 16.02 kB / 426.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003379/0.2433, allocations: 0.5181 MB / 426.8 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001372/0.2447, allocations: 0.8293 MB / 427.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000139/0.2448, allocations: 148.5 kB / 427.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002096/0.2451, allocations: 155.9 kB / 427.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002532/0.2476, allocations: 1.331 MB / 429.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.949e-05/0.2477, allocations: 11.94 kB / 429.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001449/0.2478, allocations: 67.98 kB / 429.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.652e-05/0.2478, allocations: 39.98 kB / 429.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002641/0.2505, allocations: 1.272 MB / 430.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007285/0.2578, allocations: 4.795 MB / 435.4 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002911/0.2607, allocations: 1.938 MB / 437.4 MB, free: 4.312 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001123/0.2618, allocations: 0.5705 MB / 437.9 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001096/0.262, allocations: 106.1 kB / 438 MB, free: 3.617 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001376/0.2633, allocations: 0.7333 MB / 438.8 MB, free: 2.855 MB / 350.1 MB Notification: Performance of pre-optimization done (n=132): time 2.785e-06/0.2634, allocations: 0 / 438.8 MB, free: 2.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=166): time 0.01445/0.2778, allocations: 5.603 MB / 444.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.818e-05/0.2779, allocations: 149.8 kB / 444.5 MB, free: 12.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006653/0.2786, allocations: 0.6056 MB / 445.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.2787, allocations: 61.69 kB / 445.2 MB, free: 12.28 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003537/0.2791, allocations: 0.5662 MB / 445.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003813/0.2794, allocations: 0.539 MB / 446.3 MB, free: 11.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004149/0.2799, allocations: 279.5 kB / 446.6 MB, free: 10.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.28, allocations: 349.9 kB / 446.9 MB, free: 10.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.2811, allocations: 0.5076 MB / 447.4 MB, free: 10.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/0.2825, allocations: 0.8326 MB / 448.2 MB, free: 9.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002478/0.285, allocations: 1.417 MB / 449.7 MB, free: 7.535 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.151e-06/0.285, allocations: 4 kB / 449.7 MB, free: 7.531 MB / 366.1 MB Notification: Performance of matching and sorting (n=215) (initialization): time 0.004386/0.2894, allocations: 2.023 MB / 451.7 MB, free: 5.492 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.2894, allocations: 11.94 kB / 451.7 MB, free: 5.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.2894, allocations: 12 kB / 451.7 MB, free: 5.469 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001887/0.2913, allocations: 0.5224 MB / 452.2 MB, free: 4.934 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.2925, allocations: 283.6 kB / 452.5 MB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01017/0.3027, allocations: 9.522 MB / 462 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008735/0.3036, allocations: 71.97 kB / 462.1 MB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.3037, allocations: 71.92 kB / 462.2 MB, free: 10.45 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,rootMeanSquare.mean2.y_last,$PRE.rootMeanSquare.mean2.y_last,rootMeanSquare.mean1.y_last,$PRE.rootMeanSquare.mean1.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (161): * Single equations (assignments): 157 * 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): 3 systems {(1,9,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0005122/0.3042, allocations: 345.5 kB / 462.5 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001635/0.3044, allocations: 106.7 kB / 462.6 MB, free: 10 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004464/0.3088, allocations: 1.914 MB / 464.5 MB, free: 8.062 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.707e-05/0.3089, allocations: 15.97 kB / 464.5 MB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.3089, allocations: 0 / 464.5 MB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004038/0.3093, allocations: 291.6 kB / 464.8 MB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001618/0.3095, allocations: 35.98 kB / 464.9 MB, free: 7.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007197/0.3102, allocations: 55.97 kB / 464.9 MB, free: 7.652 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002363/0.3104, allocations: 145.8 kB / 465.1 MB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005165/0.3156, allocations: 2.046 MB / 467.1 MB, free: 5.449 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004065/0.3197, allocations: 2.334 MB / 469.4 MB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00112/0.3208, allocations: 0.5895 MB / 470 MB, free: 2.508 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004524/0.3213, allocations: 415.1 kB / 470.4 MB, free: 2.105 MB / 382.1 MB Notification: Performance of Backend: time 2.5e-07/0.3213, allocations: 0 / 470.4 MB, free: 2.105 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003324/0.3246, allocations: 1.858 MB / 472.3 MB, free: 188 kB / 382.1 MB Notification: Performance of SimCode: time 0.003491/0.3281, allocations: 3.149 MB / 475.4 MB, free: 12.98 MB / 398.1 MB Notification: Performance of Templates: time 0.03109/0.3592, allocations: 21.24 MB / 496.7 MB, free: 7.762 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1)