Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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 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.NonLinearInductor,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.0008132/0.0008133, allocations: 88.39 kB / 16.31 MB, free: 6.453 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.0009313/0.0009313, allocations: 183.1 kB / 17.21 MB, free: 6.324 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.45/1.45, allocations: 205.4 MB / 223.4 MB, free: 5.578 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.0006922/0.0006923, allocations: 11.98 kB / 280.2 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2505, allocations: 47.58 MB / 327.7 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.00736/0.2579, allocations: 6.716 MB / 334.5 MB, free: 12.19 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005868/0.2638, allocations: 2.74 MB / 337.2 MB, free: 9.953 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001046/0.2649, allocations: 31.97 kB / 337.2 MB, free: 9.945 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001111/0.266, allocations: 307.4 kB / 337.5 MB, free: 9.695 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002171/0.2682, allocations: 0.6568 MB / 338.2 MB, free: 9.035 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002313/0.2705, allocations: 1.001 MB / 339.2 MB, free: 8.031 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001871/0.2724, allocations: 1.499 MB / 340.7 MB, free: 6.523 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002308/0.2747, allocations: 1.44 MB / 342.1 MB, free: 5.027 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007014/0.2754, allocations: 0.5096 MB / 342.6 MB, free: 4.516 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007435/0.2762, allocations: 0.6377 MB / 343.3 MB, free: 3.875 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001251/0.2763, allocations: 71.94 kB / 343.3 MB, free: 3.805 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009061/0.2772, allocations: 355.7 kB / 343.7 MB, free: 3.457 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002198/0.2775, allocations: 250.9 kB / 343.9 MB, free: 3.211 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002886/0.2778, allocations: 296.9 kB / 344.2 MB, free: 2.914 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001762/0.2795, allocations: 1.683 MB / 345.9 MB, free: 1.227 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.327e-06/0.2796, allocations: 0 / 345.9 MB, free: 1.227 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.2796, allocations: 3.938 kB / 345.9 MB, free: 1.223 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.913e-05/0.2796, allocations: 4 kB / 345.9 MB, free: 1.219 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: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.00497/0.2846, allocations: 1.887 MB / 347.8 MB, free: 15.27 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.498e-05/0.2847, allocations: 8.031 kB / 347.8 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003723/0.2884, allocations: 0.6342 MB / 348.4 MB, free: 14.63 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001474/0.2899, allocations: 0.8129 MB / 349.3 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000143/0.29, allocations: 148.5 kB / 349.4 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002063/0.2902, allocations: 152 kB / 349.5 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002562/0.2928, allocations: 1.366 MB / 350.9 MB, free: 12.09 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.885e-05/0.2929, allocations: 7.906 kB / 350.9 MB, free: 12.08 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000128/0.293, allocations: 63.98 kB / 351 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.686e-05/0.293, allocations: 36 kB / 351 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002651/0.2957, allocations: 1.378 MB / 352.4 MB, free: 10.6 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007912/0.3036, allocations: 5.004 MB / 357.4 MB, free: 5.348 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003071/0.3067, allocations: 2.454 MB / 359.9 MB, free: 2.633 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001098/0.3078, allocations: 0.5831 MB / 360.4 MB, free: 2.047 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001289/0.308, allocations: 106.4 kB / 360.5 MB, free: 1.926 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001392/0.3094, allocations: 0.7414 MB / 361.3 MB, free: 1.156 MB / 286.1 MB Notification: Performance of pre-optimization done (n=134): time 3.296e-06/0.3094, allocations: 0 / 361.3 MB, free: 1.156 MB / 286.1 MB Notification: Performance of matching and sorting (n=168): time 0.01361/0.323, allocations: 5.649 MB / 366.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.92e-05/0.3232, allocations: 154.5 kB / 367.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007933/0.324, allocations: 0.6174 MB / 367.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.3241, allocations: 61.7 kB / 367.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004697/0.3246, allocations: 0.5817 MB / 368.3 MB, free: 9.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004578/0.325, allocations: 0.539 MB / 368.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.278e-05/0.3251, allocations: 36 kB / 368.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002123/0.3253, allocations: 414.7 kB / 369.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/0.3264, allocations: 0.5193 MB / 369.8 MB, free: 8.414 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/0.3278, allocations: 0.8846 MB / 370.7 MB, free: 7.395 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001257/0.3291, allocations: 0.6377 MB / 371.4 MB, free: 6.758 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.697e-06/0.3291, allocations: 4 kB / 371.4 MB, free: 6.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.0044/0.3335, allocations: 2.09 MB / 373.5 MB, free: 4.641 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.751e-05/0.3335, allocations: 8 kB / 373.5 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.903e-05/0.3336, allocations: 8 kB / 373.5 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002039/0.3356, allocations: 0.5457 MB / 374 MB, free: 4.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001185/0.3368, allocations: 315.5 kB / 374.3 MB, free: 3.758 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009707/0.3465, allocations: 8.642 MB / 383 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001219/0.3478, allocations: 80.06 kB / 383 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002312/0.348, allocations: 75.92 kB / 383.1 MB, free: 10.43 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,$PRE.rootMeanSquare.mean1.y,rootMeanSquare.mean1.y,$PRE.rootMeanSquare.mean2.y,rootMeanSquare.mean2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 9,(1,100.0%) 19,(1,100.0%) 19} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.000939/0.349, allocations: 361.4 kB / 383.5 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002668/0.3493, allocations: 110.7 kB / 383.6 MB, free: 9.953 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004504/0.3538, allocations: 1.938 MB / 385.5 MB, free: 7.992 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.572e-05/0.3538, allocations: 16 kB / 385.5 MB, free: 7.977 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.201e-05/0.3538, allocations: 11.95 kB / 385.5 MB, free: 7.965 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.842e-05/0.3539, allocations: 11.95 kB / 385.6 MB, free: 7.953 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006799/0.3607, allocations: 3.579 MB / 389.1 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.088e-05/0.3607, allocations: 7.953 kB / 389.1 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009403/0.3616, allocations: 219.9 kB / 389.4 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001855/0.3635, allocations: 0.499 MB / 389.9 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/0.3636, allocations: 39.98 kB / 389.9 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009267/0.3729, allocations: 8.339 MB / 398.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.3729, allocations: 4 kB / 398.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00581/0.3788, allocations: 2.68 MB / 400.9 MB, free: 7.914 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005641/0.3794, allocations: 291.6 kB / 401.2 MB, free: 7.609 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002206/0.3796, allocations: 44 kB / 401.2 MB, free: 7.566 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007855/0.3804, allocations: 71.89 kB / 401.3 MB, free: 7.496 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003221/0.3807, allocations: 152.9 kB / 401.5 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.793e-05/0.3808, allocations: 43.98 kB / 401.5 MB, free: 7.305 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006074/0.3814, allocations: 419.1 kB / 401.9 MB, free: 6.891 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3815, allocations: 0 / 401.9 MB, free: 6.891 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001711/0.3832, allocations: 424 kB / 402.3 MB, free: 6.477 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (coil.i,fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,rootMeanSquare.mean1.y,rootMeanSquare.mean2.y) * Number of discrete states: 6 (fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 19,(1,100.0%) 9,(2,100.0%) 16} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003289/0.3835, allocations: 196.4 kB / 402.5 MB, free: 6.273 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003959/0.3875, allocations: 2.127 MB / 404.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.3875, allocations: 0 / 404.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002292/0.3898, allocations: 1.433 MB / 406.1 MB, free: 2.613 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008859/0.3907, allocations: 130.9 kB / 406.2 MB, free: 2.484 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005796/0.3965, allocations: 3.337 MB / 409.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001011/0.3975, allocations: 1.197 MB / 410.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008194/0.3984, allocations: 165.1 kB / 410.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00028/0.3987, allocations: 87.41 kB / 411 MB, free: 13.61 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3987, allocations: 4 kB / 411 MB, free: 13.61 MB / 350.1 MB Notification: Performance of Templates: time 0.02988/0.4286, allocations: 15.97 MB / 427 MB, free: 13.61 MB / 366.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1)