Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_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.FundamentalWave.Examples.BasicMachines.AIMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 84.38 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.001201/0.001201, 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.729/1.729, allocations: 205.4 MB / 222.1 MB, free: 5.641 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.0005176/0.0005178, allocations: 8 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2563, allocations: 47.59 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02263/0.279, allocations: 20.84 MB / 347.3 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01609/0.2951, allocations: 6.53 MB / 353.9 MB, free: 8.062 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004465/0.2997, allocations: 131.4 kB / 354 MB, free: 7.934 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004743/0.3044, allocations: 1.196 MB / 355.2 MB, free: 6.73 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008152/0.3126, allocations: 2.02 MB / 357.2 MB, free: 4.699 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004402/0.3171, allocations: 0.9202 MB / 358.1 MB, free: 3.777 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01548/0.3326, allocations: 9.057 MB / 367.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01111/0.3437, allocations: 4.853 MB / 372 MB, free: 5.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006242/0.35, allocations: 2.86 MB / 374.9 MB, free: 2.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007662/0.3577, allocations: 3.755 MB / 378.6 MB, free: 15.13 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002807/0.3606, allocations: 468 kB / 379.1 MB, free: 14.67 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003937/0.3645, allocations: 0.6911 MB / 379.8 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003738/0.3683, allocations: 1.935 MB / 381.7 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003564/0.3719, allocations: 1.572 MB / 383.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01516/0.387, allocations: 11.76 MB / 395.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.388e-06/0.3871, allocations: 4 kB / 395.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.3871, allocations: 0 / 395.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0006045/0.3877, allocations: 0 / 395.1 MB, free: 14.66 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: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.0267/0.4144, allocations: 7.544 MB / 402.6 MB, free: 7.027 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.4145, allocations: 8.031 kB / 402.6 MB, free: 7.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007868/0.4224, allocations: 1.314 MB / 403.9 MB, free: 5.695 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01317/0.4356, allocations: 4.885 MB / 408.8 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006105/0.4363, allocations: 0.5054 MB / 409.3 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00266/0.4389, allocations: 0.664 MB / 410 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02954/0.4685, allocations: 9.402 MB / 419.4 MB, free: 6.047 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005466/0.4691, allocations: 19.86 kB / 419.4 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002874/0.472, allocations: 280 kB / 419.7 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004124/0.4725, allocations: 289.4 kB / 420 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02478/0.4972, allocations: 8.044 MB / 428 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4255/0.9228, allocations: 29.54 MB / 457.5 MB, free: 94.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01216/0.935, allocations: 11.96 MB / 469.5 MB, free: 87.01 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004986/0.9401, allocations: 3.401 MB / 472.9 MB, free: 86.6 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01458/0.9547, allocations: 8.006 MB / 480.9 MB, free: 83.05 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.508e-05/0.9548, allocations: 74.73 kB / 481 MB, free: 82.99 MB / 382.1 MB Notification: Performance of pre-optimization done (n=305): time 5.471e-06/0.9548, allocations: 1.094 kB / 481 MB, free: 82.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=324): time 0.0296/0.9844, allocations: 16 MB / 497 MB, free: 73.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.9845, allocations: 85.95 kB / 497.1 MB, free: 73.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005866/0.9904, allocations: 3.973 MB / 0.4893 GB, free: 69.29 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007436/0.9912, allocations: 85.7 kB / 0.4894 GB, free: 69.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001756/0.993, allocations: 3.085 MB / 0.4924 GB, free: 66.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001248/0.9942, allocations: 1.091 MB / 0.4935 GB, free: 65.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002193/0.9944, allocations: 76 kB / 0.4935 GB, free: 64.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002063/0.9947, allocations: 462.1 kB / 0.494 GB, free: 64.49 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002602/0.9973, allocations: 1.858 MB / 0.4958 GB, free: 62.63 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002883/1, allocations: 2.831 MB / 0.4986 GB, free: 59.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003055/1.003, allocations: 2.291 MB / 0.5008 GB, free: 57.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.3e-05/1.003, allocations: 8 kB / 0.5008 GB, free: 57.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.00953/1.013, allocations: 6.397 MB / 0.507 GB, free: 50.58 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.97e-05/1.013, allocations: 20 kB / 0.5071 GB, free: 50.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.187e-05/1.013, allocations: 31.95 kB / 0.5071 GB, free: 50.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002407/1.015, allocations: 1.26 MB / 0.5083 GB, free: 49.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003073/1.018, allocations: 0.819 MB / 0.5091 GB, free: 48.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01476/1.033, allocations: 20.74 MB / 0.5294 GB, free: 26.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003848/1.037, allocations: 198.6 kB / 0.5296 GB, free: 26.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007001/1.038, allocations: 156 kB / 0.5297 GB, free: 25.86 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 130 * Number of states: 0 () * Number of discrete variables: 9 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (424): * Single equations (assignments): 410 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(1,100.0%) 8,(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(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.00475/1.043, allocations: 2.181 MB / 0.5318 GB, free: 23.67 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001456/1.044, allocations: 454.5 kB / 0.5323 GB, free: 23.22 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01021/1.054, allocations: 6.042 MB / 0.5382 GB, free: 17 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.25e-05/1.054, allocations: 32 kB / 0.5382 GB, free: 16.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.969e-05/1.055, allocations: 16 kB / 0.5382 GB, free: 16.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-05/1.055, allocations: 15.95 kB / 0.5382 GB, free: 16.94 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02322/1.078, allocations: 12.36 MB / 0.5503 GB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.662e-05/1.078, allocations: 4.375 kB / 0.5503 GB, free: 4.355 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001816/1.08, allocations: 459.4 kB / 0.5508 GB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00346/1.083, allocations: 1.609 MB / 0.5523 GB, free: 2.246 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002752/1.083, allocations: 79.97 kB / 0.5524 GB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02947/1.113, allocations: 30.17 MB / 0.5819 GB, free: 1.883 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/1.113, allocations: 8.062 kB / 0.5819 GB, free: 1.875 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01688/1.13, allocations: 8.64 MB / 0.5903 GB, free: 8.988 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002825/1.133, allocations: 0.9211 MB / 0.5912 GB, free: 8.043 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001413/1.134, allocations: 71.95 kB / 0.5913 GB, free: 7.973 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002675/1.137, allocations: 199.8 kB / 0.5915 GB, free: 7.777 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000821/1.138, allocations: 274 kB / 0.5917 GB, free: 7.508 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003289/1.138, allocations: 87.98 kB / 0.5918 GB, free: 7.422 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.006312/1.144, allocations: 2.69 MB / 0.5944 GB, free: 4.727 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.12e-07/1.144, allocations: 0 / 0.5944 GB, free: 4.727 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.007283/1.152, allocations: 1.323 MB / 0.5957 GB, free: 3.406 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.inertiaRotor.w,aimsM.stator.zeroInductor.i0,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsE.inertiaRotor.w,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (231): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 16 * 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: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008483/1.153, allocations: 257.3 kB / 0.596 GB, free: 3.152 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01155/1.164, allocations: 6.313 MB / 0.6021 GB, free: 12.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/1.164, allocations: 4 kB / 0.6021 GB, free: 12.61 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007633/1.172, allocations: 4.797 MB / 0.6068 GB, free: 7.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007871/1.18, allocations: 1.275 MB / 0.6081 GB, free: 6.309 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2102/1.39, allocations: 15.77 MB / 0.6235 GB, free: 143.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004896/1.395, allocations: 4.483 MB / 0.6279 GB, free: 142.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004198/1.399, allocations: 1.051 MB / 0.6289 GB, free: 142.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009964/1.4, allocations: 273.5 kB / 0.6291 GB, free: 142.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.413e-06/1.4, allocations: 0 / 0.6291 GB, free: 142.2 MB / 446.1 MB Notification: Performance of Templates: time 0.1032/1.503, allocations: 68.41 MB / 0.696 GB, free: 84.36 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1)