Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001252/0.001251, allocations: 92.23 kB / 15.06 MB, free: 1.098 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.001582/0.001582, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.67/1.67, allocations: 205.4 MB / 222.1 MB, free: 5.598 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.000501/0.0005017, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3125/0.313, allocations: 47.59 MB / 326.5 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.00849/0.3216, allocations: 6.713 MB / 333.2 MB, free: 12.16 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007733/0.3294, allocations: 2.755 MB / 335.9 MB, free: 9.914 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002726/0.3322, allocations: 28.66 kB / 336 MB, free: 9.91 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002023/0.3343, allocations: 305.9 kB / 336.3 MB, free: 9.676 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003742/0.338, allocations: 0.6529 MB / 336.9 MB, free: 9.02 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002997/0.341, allocations: 0.9974 MB / 337.9 MB, free: 8.02 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003171/0.3442, allocations: 1.496 MB / 339.4 MB, free: 6.516 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00387/0.3481, allocations: 1.452 MB / 340.9 MB, free: 5.008 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001373/0.3495, allocations: 0.5018 MB / 341.4 MB, free: 4.504 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001403/0.3509, allocations: 0.6494 MB / 342 MB, free: 3.852 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004409/0.3514, allocations: 64 kB / 342.1 MB, free: 3.789 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00156/0.353, allocations: 363.6 kB / 342.4 MB, free: 3.434 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003878/0.3534, allocations: 250.9 kB / 342.7 MB, free: 3.188 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007334/0.3541, allocations: 289 kB / 343 MB, free: 2.898 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002631/0.3567, allocations: 1.679 MB / 344.6 MB, free: 1.215 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.3568, allocations: 3.984 kB / 344.6 MB, free: 1.211 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3568, allocations: 0 / 344.6 MB, free: 1.211 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.12e-05/0.3569, allocations: 0 / 344.6 MB, free: 1.211 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.006087/0.363, allocations: 1.887 MB / 346.5 MB, free: 15.27 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.363, allocations: 8.031 kB / 346.5 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004209/0.3673, allocations: 0.6343 MB / 347.2 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002251/0.3695, allocations: 0.8206 MB / 348 MB, free: 13.76 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002179/0.3698, allocations: 148.6 kB / 348.1 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004513/0.3702, allocations: 156 kB / 348.3 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003811/0.3741, allocations: 1.366 MB / 349.7 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.679e-05/0.3742, allocations: 7.906 kB / 349.7 MB, free: 12.06 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001922/0.3744, allocations: 63.98 kB / 349.7 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.684e-05/0.3744, allocations: 36 kB / 349.8 MB, free: 11.96 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003389/0.3778, allocations: 1.366 MB / 351.1 MB, free: 10.59 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01045/0.3883, allocations: 5.012 MB / 356.1 MB, free: 5.332 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003604/0.3919, allocations: 2.457 MB / 358.6 MB, free: 2.613 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001268/0.3932, allocations: 0.5831 MB / 359.2 MB, free: 2.027 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001636/0.3934, allocations: 106.4 kB / 359.3 MB, free: 1.906 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001581/0.395, allocations: 0.7454 MB / 360 MB, free: 1.133 MB / 286.1 MB Notification: Performance of pre-optimization done (n=134): time 4.268e-06/0.395, allocations: 0 / 360 MB, free: 1.133 MB / 286.1 MB Notification: Performance of matching and sorting (n=168): time 0.01538/0.4104, allocations: 5.641 MB / 365.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/0.4106, allocations: 154.5 kB / 365.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001001/0.4116, allocations: 0.6174 MB / 366.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001281/0.4118, allocations: 57.7 kB / 366.5 MB, free: 10.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005976/0.4124, allocations: 0.5817 MB / 367.1 MB, free: 9.918 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005455/0.4129, allocations: 0.5429 MB / 367.6 MB, free: 9.367 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.626e-05/0.413, allocations: 32 kB / 367.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002288/0.4133, allocations: 422.6 kB / 368.1 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001181/0.4145, allocations: 0.5231 MB / 368.6 MB, free: 8.391 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001413/0.4159, allocations: 0.8846 MB / 369.5 MB, free: 7.371 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00135/0.4172, allocations: 0.6455 MB / 370.1 MB, free: 6.727 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.125e-05/0.4173, allocations: 0 / 370.1 MB, free: 6.727 MB / 302.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.005686/0.423, allocations: 2.086 MB / 372.2 MB, free: 4.617 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.516e-05/0.4231, allocations: 8 kB / 372.2 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.895e-05/0.4231, allocations: 12 kB / 372.2 MB, free: 4.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002968/0.4261, allocations: 0.534 MB / 372.8 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002089/0.4282, allocations: 315.5 kB / 373.1 MB, free: 3.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01681/0.445, allocations: 8.646 MB / 381.7 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002068/0.4472, allocations: 79.97 kB / 381.8 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004032/0.4476, allocations: 67.98 kB / 381.9 MB, free: 10.41 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.001399/0.449, allocations: 357.7 kB / 382.2 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004797/0.4495, allocations: 110.7 kB / 382.3 MB, free: 9.945 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008687/0.4582, allocations: 1.942 MB / 384.3 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.742e-05/0.4583, allocations: 20 kB / 384.3 MB, free: 7.961 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.138e-05/0.4584, allocations: 7.953 kB / 384.3 MB, free: 7.953 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.444e-05/0.4584, allocations: 11.97 kB / 384.3 MB, free: 7.941 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01333/0.4718, allocations: 3.579 MB / 387.9 MB, free: 4.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.193e-05/0.4718, allocations: 3.953 kB / 387.9 MB, free: 4.266 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00195/0.4738, allocations: 219.9 kB / 388.1 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003613/0.4774, allocations: 0.5107 MB / 388.6 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002683/0.4777, allocations: 39.98 kB / 388.6 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01759/0.4953, allocations: 8.339 MB / 397 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.148e-05/0.4954, allocations: 7.875 kB / 397 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01254/0.508, allocations: 2.684 MB / 399.7 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001268/0.5093, allocations: 287.6 kB / 400 MB, free: 7.586 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005217/0.5099, allocations: 36 kB / 400 MB, free: 7.551 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001574/0.5115, allocations: 71.95 kB / 400.1 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005698/0.5121, allocations: 140.9 kB / 400.2 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002416/0.5123, allocations: 55.97 kB / 400.3 MB, free: 7.289 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001185/0.5135, allocations: 415.1 kB / 400.7 MB, free: 6.879 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5136, allocations: 0 / 400.7 MB, free: 6.879 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.003493/0.5171, allocations: 420 kB / 401.1 MB, free: 6.469 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.0007142/0.5178, allocations: 196.3 kB / 401.3 MB, free: 6.266 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.007516/0.5254, allocations: 2.124 MB / 403.4 MB, free: 4.098 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.623e-05/0.5255, allocations: 0 / 403.4 MB, free: 4.098 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004669/0.5302, allocations: 1.436 MB / 404.8 MB, free: 2.605 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001933/0.5321, allocations: 131.6 kB / 405 MB, free: 2.477 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01095/0.5431, allocations: 3.333 MB / 408.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00162/0.5448, allocations: 1.201 MB / 409.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.002044/0.5469, allocations: 173.1 kB / 409.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005538/0.5475, allocations: 87.41 kB / 409.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of SimCode: time 1.542e-06/0.5475, allocations: 0 / 409.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of Templates: time 0.05511/0.6026, allocations: 15.98 MB / 425.7 MB, free: 13.59 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1)