Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001064/0.001064, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.001342/0.001342, allocations: 168.7 kB / 15.95 MB, free: 204 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.647/1.647, allocations: 205.4 MB / 222.1 MB, free: 5.387 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.0004771/0.0004772, allocations: 8 kB / 278.9 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2591, allocations: 47.58 MB / 326.5 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.04079/0.3, allocations: 39.62 MB / 366.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0243/0.3243, allocations: 10.92 MB / 377 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008551/0.3329, allocations: 282.9 kB / 377.3 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00874/0.3417, allocations: 2.225 MB / 379.5 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01492/0.3566, allocations: 4.05 MB / 383.6 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008351/0.365, allocations: 2.007 MB / 385.6 MB, free: 8.191 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.03041/0.3954, allocations: 23.28 MB / 408.9 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06365/0.4591, allocations: 31.95 MB / 440.8 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01663/0.4757, allocations: 7.826 MB / 448.7 MB, free: 8.891 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.414/0.8898, allocations: 8.929 MB / 457.6 MB, free: 29.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006342/0.8962, allocations: 1.219 MB / 458.8 MB, free: 29.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008858/0.9051, allocations: 1.595 MB / 460.4 MB, free: 29.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006826/0.9119, allocations: 3.927 MB / 464.3 MB, free: 29.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007695/0.9197, allocations: 3.992 MB / 468.3 MB, free: 29.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02939/0.9491, allocations: 34.84 MB / 0.4914 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.837e-06/0.9492, allocations: 0 / 0.4914 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.9492, allocations: 0 / 0.4914 GB, free: 13.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.001326/0.9505, allocations: 0 / 0.4914 GB, free: 13.88 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.05193/1.002, allocations: 20.2 MB / 0.5111 GB, free: 4.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/1.002, allocations: 9.375 kB / 0.5111 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06219/1.065, allocations: 12.35 MB / 0.5232 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.026/1.091, allocations: 11.88 MB / 0.5348 GB, free: 4.402 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001956/1.093, allocations: 1.373 MB / 0.5361 GB, free: 3.621 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008601/1.101, allocations: 1.807 MB / 0.5379 GB, free: 2.418 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08255/1.184, allocations: 29.92 MB / 0.5671 GB, free: 11.73 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009761/1.185, allocations: 27.45 kB / 0.5671 GB, free: 11.7 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009795/1.195, allocations: 0.7484 MB / 0.5678 GB, free: 10.97 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001134/1.196, allocations: 1.015 MB / 0.5688 GB, free: 9.953 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06334/1.259, allocations: 27.84 MB / 0.596 GB, free: 14.09 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3783/1.638, allocations: 95.67 MB / 0.6895 GB, free: 107.7 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03582/1.673, allocations: 63.4 MB / 0.7514 GB, free: 46.85 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01204/1.686, allocations: 7.512 MB / 0.7587 GB, free: 41.57 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03558/1.721, allocations: 20.71 MB / 0.7789 GB, free: 21.06 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.531e-05/1.721, allocations: 108.5 kB / 0.779 GB, free: 20.95 MB / 478.1 MB Notification: Performance of pre-optimization done (n=683): time 8.145e-06/1.721, allocations: 0 / 0.779 GB, free: 20.95 MB / 478.1 MB Notification: Performance of matching and sorting (n=691): time 0.3031/2.024, allocations: 43.36 MB / 0.8214 GB, free: 164.3 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.267e-05/2.024, allocations: 148.6 kB / 0.8215 GB, free: 164.2 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01191/2.036, allocations: 7.192 MB / 0.8285 GB, free: 162.7 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001423/2.038, allocations: 138.7 kB / 0.8287 GB, free: 162.6 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004692/2.043, allocations: 7.937 MB / 0.8364 GB, free: 157.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002801/2.045, allocations: 2.345 MB / 0.8387 GB, free: 155.9 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009885/2.046, allocations: 204.6 kB / 0.8389 GB, free: 155.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0005531/2.047, allocations: 0.7091 MB / 0.8396 GB, free: 155.2 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008085/2.055, allocations: 4.925 MB / 0.8444 GB, free: 153.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009953/2.065, allocations: 8.645 MB / 0.8529 GB, free: 146.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01013/2.075, allocations: 6.706 MB / 0.8594 GB, free: 143.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001234/2.075, allocations: 34.83 kB / 0.8594 GB, free: 143.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=1280) (initialization): time 0.03102/2.106, allocations: 16.41 MB / 0.8755 GB, free: 135.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001106/2.107, allocations: 56.81 kB / 0.8755 GB, free: 135.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002244/2.107, allocations: 120 kB / 0.8756 GB, free: 135 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00627/2.113, allocations: 2.599 MB / 0.8782 GB, free: 133 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009396/2.123, allocations: 2.182 MB / 0.8803 GB, free: 130.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02996/2.153, allocations: 28.54 MB / 0.9082 GB, free: 101.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009352/2.162, allocations: 0.5496 MB / 0.9087 GB, free: 100.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002194/2.164, allocations: 487.9 kB / 0.9092 GB, free: 100.2 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.01458/2.179, allocations: 6.826 MB / 0.9158 GB, free: 93.41 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002362/2.181, allocations: 0.7756 MB / 0.9166 GB, free: 92.62 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02142/2.203, allocations: 13.18 MB / 0.9295 GB, free: 79.23 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01152/2.214, allocations: 8.26 MB / 0.9375 GB, free: 70.87 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.651e-05/2.214, allocations: 28 kB / 0.9376 GB, free: 70.84 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001346/2.214, allocations: 39.83 kB / 0.9376 GB, free: 70.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05057/2.265, allocations: 28.15 MB / 0.9651 GB, free: 42.46 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.495e-05/2.265, allocations: 8.031 kB / 0.9651 GB, free: 42.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00507/2.27, allocations: 1.1 MB / 0.9662 GB, free: 41.35 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005961/2.276, allocations: 2.645 MB / 0.9687 GB, free: 38.68 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001282/2.277, allocations: 156 kB / 0.9689 GB, free: 38.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2739/2.551, allocations: 32.94 MB / 1.001 GB, free: 140 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/2.551, allocations: 9.062 kB / 1.001 GB, free: 140 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03012/2.582, allocations: 18.89 MB / 1.02 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005158/2.587, allocations: 1.786 MB / 1.021 GB, free: 135.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002325/2.589, allocations: 129.8 kB / 1.021 GB, free: 135.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004849/2.594, allocations: 409.2 kB / 1.022 GB, free: 135.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001321/2.595, allocations: 0.5315 MB / 1.022 GB, free: 135.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006877/2.596, allocations: 199.1 kB / 1.022 GB, free: 135.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.009797/2.606, allocations: 4.817 MB / 1.027 GB, free: 133.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.31e-07/2.606, allocations: 0 / 1.027 GB, free: 133.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0149/2.621, allocations: 3.078 MB / 1.03 GB, free: 133.1 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.001945/2.623, allocations: 354.1 kB / 1.031 GB, free: 132.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02041/2.643, allocations: 13.55 MB / 1.044 GB, free: 126.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/2.643, allocations: 4 kB / 1.044 GB, free: 126.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0107/2.654, allocations: 7.615 MB / 1.051 GB, free: 119.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01223/2.666, allocations: 2.067 MB / 1.053 GB, free: 118 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06858/2.735, allocations: 38.86 MB / 1.091 GB, free: 82.27 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01877/2.754, allocations: 11.43 MB / 1.102 GB, free: 71.07 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.01355/2.767, allocations: 3.368 MB / 1.106 GB, free: 67.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003162/2.77, allocations: 0.5736 MB / 1.106 GB, free: 67.12 MB / 494.1 MB Notification: Performance of SimCode: time 1.032e-06/2.77, allocations: 0 / 1.106 GB, free: 67.12 MB / 494.1 MB Notification: Performance of Templates: time 0.4583/3.229, allocations: 127.6 MB / 1.231 GB, free: 102.7 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1)