Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.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.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009638/0.0009641, allocations: 90.34 kB / 15.06 MB, free: 1.078 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.001164/0.001164, allocations: 176.7 kB / 15.95 MB, free: 192 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.366/1.366, allocations: 205.4 MB / 222.1 MB, free: 5.668 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.0004238/0.0004238, allocations: 12 kB / 278.9 MB, free: 12.8 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2196/0.22, allocations: 47.57 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.04003/0.2601, allocations: 39.63 MB / 366.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0262/0.2864, allocations: 10.92 MB / 377 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008792/0.2952, allocations: 286.9 kB / 377.3 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009385/0.3046, allocations: 2.225 MB / 379.5 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01617/0.3208, allocations: 4.043 MB / 383.6 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007956/0.3288, allocations: 2.011 MB / 385.6 MB, free: 8.223 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0307/0.3595, allocations: 23.29 MB / 408.9 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06214/0.4217, allocations: 31.93 MB / 440.8 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01212/0.4338, allocations: 7.826 MB / 448.6 MB, free: 8.926 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3346/0.7684, allocations: 8.933 MB / 457.6 MB, free: 29.15 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005023/0.7735, allocations: 1.219 MB / 458.8 MB, free: 29.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008069/0.7816, allocations: 1.592 MB / 460.4 MB, free: 29.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005429/0.787, allocations: 3.932 MB / 464.3 MB, free: 29.15 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006014/0.7931, allocations: 3.991 MB / 468.3 MB, free: 29.12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02648/0.8196, allocations: 34.83 MB / 0.4914 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.8196, allocations: 0 / 0.4914 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.8196, allocations: 3.938 kB / 0.4914 GB, free: 13.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.001098/0.8207, allocations: 0 / 0.4914 GB, free: 13.79 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5087 * Number of variables: 5087 Notification: Performance of Generate backend data structure: time 0.04995/0.8707, allocations: 20.21 MB / 0.5111 GB, free: 3.996 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.8707, allocations: 12.38 kB / 0.5111 GB, free: 3.996 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06219/0.9329, allocations: 12.34 MB / 0.5232 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02572/0.9587, allocations: 11.88 MB / 0.5348 GB, free: 4.316 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001493/0.9602, allocations: 1.377 MB / 0.5361 GB, free: 3.535 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006859/0.9671, allocations: 1.802 MB / 0.5379 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07983/1.047, allocations: 29.92 MB / 0.5671 GB, free: 11.73 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009508/1.048, allocations: 23.09 kB / 0.5671 GB, free: 11.71 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006816/1.055, allocations: 0.7527 MB / 0.5678 GB, free: 10.97 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001246/1.056, allocations: 1.015 MB / 0.5688 GB, free: 9.953 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06317/1.119, allocations: 27.84 MB / 0.596 GB, free: 14.09 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3412/1.46, allocations: 95.68 MB / 0.6895 GB, free: 107.2 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03599/1.496, allocations: 63.39 MB / 0.7514 GB, free: 46.41 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01172/1.508, allocations: 7.517 MB / 0.7587 GB, free: 41.45 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03544/1.544, allocations: 20.71 MB / 0.7789 GB, free: 20.94 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.854e-05/1.544, allocations: 108.5 kB / 0.779 GB, free: 20.82 MB / 478.1 MB Notification: Performance of pre-optimization done (n=683): time 9.428e-06/1.544, allocations: 3.938 kB / 0.779 GB, free: 20.82 MB / 478.1 MB Notification: Performance of matching and sorting (n=691): time 0.2889/1.833, allocations: 43.35 MB / 0.8214 GB, free: 164.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.98e-05/1.833, allocations: 148 kB / 0.8215 GB, free: 164.1 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009937/1.843, allocations: 7.198 MB / 0.8285 GB, free: 162.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001112/1.844, allocations: 135.9 kB / 0.8287 GB, free: 162.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003706/1.848, allocations: 7.938 MB / 0.8364 GB, free: 157.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002161/1.85, allocations: 2.35 MB / 0.8387 GB, free: 155.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006277/1.85, allocations: 199 kB / 0.8389 GB, free: 155.5 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0004668/1.851, allocations: 0.7089 MB / 0.8396 GB, free: 155 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007242/1.858, allocations: 4.929 MB / 0.8444 GB, free: 153.2 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00854/1.867, allocations: 8.641 MB / 0.8528 GB, free: 146.6 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008921/1.876, allocations: 6.709 MB / 0.8594 GB, free: 143.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.1e-05/1.876, allocations: 36.19 kB / 0.8594 GB, free: 143.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=1280) (initialization): time 0.02513/1.901, allocations: 16.41 MB / 0.8755 GB, free: 135 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.941e-05/1.901, allocations: 60 kB / 0.8755 GB, free: 135 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001851/1.901, allocations: 120 kB / 0.8756 GB, free: 134.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00554/1.907, allocations: 2.589 MB / 0.8782 GB, free: 132.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007953/1.915, allocations: 2.176 MB / 0.8803 GB, free: 130.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02804/1.943, allocations: 28.55 MB / 0.9082 GB, free: 101.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00748/1.95, allocations: 0.5503 MB / 0.9087 GB, free: 100.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001534/1.952, allocations: 480 kB / 0.9092 GB, free: 100 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 550 * Number of states: 0 () * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1131): * Single equations (assignments): 1118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(18,41.7%) 100,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01093/1.963, allocations: 6.823 MB / 0.9158 GB, free: 93.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001779/1.965, allocations: 0.7794 MB / 0.9166 GB, free: 92.41 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01959/1.984, allocations: 13.18 MB / 0.9295 GB, free: 79.01 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01146/1.996, allocations: 8.264 MB / 0.9375 GB, free: 70.65 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.375e-05/1.996, allocations: 28 kB / 0.9376 GB, free: 70.62 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00011/1.996, allocations: 39.81 kB / 0.9376 GB, free: 70.59 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04496/2.041, allocations: 28.14 MB / 0.9651 GB, free: 42.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-05/2.041, allocations: 9.391 kB / 0.9651 GB, free: 42.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004425/2.045, allocations: 1.108 MB / 0.9662 GB, free: 41.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00569/2.051, allocations: 2.638 MB / 0.9687 GB, free: 38.46 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008009/2.052, allocations: 152 kB / 0.9689 GB, free: 38.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2311/2.283, allocations: 32.94 MB / 1.001 GB, free: 139.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/2.283, allocations: 8.719 kB / 1.001 GB, free: 139.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02675/2.31, allocations: 18.9 MB / 1.02 GB, free: 135.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004193/2.314, allocations: 1.784 MB / 1.021 GB, free: 135.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001752/2.316, allocations: 124 kB / 1.021 GB, free: 135 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004118/2.32, allocations: 408 kB / 1.022 GB, free: 134.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001268/2.321, allocations: 0.5312 MB / 1.022 GB, free: 134.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004929/2.322, allocations: 200.3 kB / 1.022 GB, free: 134.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006993/2.329, allocations: 4.809 MB / 1.027 GB, free: 133 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.71e-07/2.329, allocations: 3.062 kB / 1.027 GB, free: 133 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01055/2.339, allocations: 3.088 MB / 1.03 GB, free: 132.7 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.inertiaRotor.w,ims.stator.zeroInductor.i0,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.rotor.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,quadraticLoadTorque.phi,imsQS.inertiaRotor.w,imsQS.rotor.strayReluctance.port_p.reference.gamma,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (563): * Single equations (assignments): 548 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(18,41.7%) 100} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001103/2.341, allocations: 352.8 kB / 1.031 GB, free: 132.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01709/2.358, allocations: 13.55 MB / 1.044 GB, free: 126.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/2.358, allocations: 4 kB / 1.044 GB, free: 126.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01019/2.368, allocations: 7.616 MB / 1.051 GB, free: 119.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01026/2.378, allocations: 2.067 MB / 1.053 GB, free: 117.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0489/2.427, allocations: 38.86 MB / 1.091 GB, free: 82.15 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01115/2.438, allocations: 11.43 MB / 1.102 GB, free: 70.95 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.009096/2.447, allocations: 3.368 MB / 1.106 GB, free: 67.57 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001832/2.449, allocations: 0.5658 MB / 1.106 GB, free: 67 MB / 494.1 MB Notification: Performance of SimCode: time 1.052e-06/2.449, allocations: 4 kB / 1.106 GB, free: 67 MB / 494.1 MB Notification: Performance of Templates: time 0.3973/2.847, allocations: 127.6 MB / 1.231 GB, free: 102.5 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1)