Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001047/0.001047, allocations: 86.72 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.001346/0.001346, 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.369/1.369, 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.0004938/0.0004939, allocations: 14.81 kB / 278.9 MB, free: 12.8 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2365, allocations: 47.58 MB / 326.5 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02066/0.2572, allocations: 20.84 MB / 347.3 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01384/0.2711, allocations: 6.53 MB / 353.9 MB, free: 8.047 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004321/0.2755, allocations: 127.4 kB / 354 MB, free: 7.922 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004163/0.2796, allocations: 1.196 MB / 355.2 MB, free: 6.719 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006639/0.2863, allocations: 2.016 MB / 357.2 MB, free: 4.691 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003329/0.2896, allocations: 0.9241 MB / 358.1 MB, free: 3.766 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0114/0.3011, allocations: 9.057 MB / 367.2 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008919/0.31, allocations: 4.853 MB / 372 MB, free: 5.758 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00608/0.3161, allocations: 2.868 MB / 374.9 MB, free: 2.879 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00672/0.3229, allocations: 3.751 MB / 378.6 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001951/0.3248, allocations: 464 kB / 379.1 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003449/0.3283, allocations: 0.6911 MB / 379.8 MB, free: 13.97 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003264/0.3316, allocations: 1.935 MB / 381.7 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003651/0.3352, allocations: 1.58 MB / 383.3 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01446/0.3497, allocations: 11.76 MB / 395.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3498, allocations: 0 / 395.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3498, allocations: 0 / 395.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0005284/0.3503, allocations: 0 / 395.1 MB, free: 14.64 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.0212/0.3715, allocations: 7.54 MB / 402.6 MB, free: 7.016 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.3716, allocations: 12.03 kB / 402.6 MB, free: 7.004 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006616/0.3782, allocations: 1.31 MB / 403.9 MB, free: 5.684 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009829/0.3881, allocations: 4.893 MB / 408.8 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003991/0.3885, allocations: 0.4938 MB / 409.3 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001296/0.3898, allocations: 0.664 MB / 410 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01654/0.4063, allocations: 9.402 MB / 419.4 MB, free: 6.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001343/0.4065, allocations: 15.92 kB / 419.4 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006457/0.4072, allocations: 280 kB / 419.7 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000287/0.4075, allocations: 293.4 kB / 420 MB, free: 5.461 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01463/0.4221, allocations: 8.044 MB / 428 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4267/0.8488, allocations: 29.55 MB / 457.5 MB, free: 95.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01086/0.8598, allocations: 11.96 MB / 469.5 MB, free: 87.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005062/0.8649, allocations: 3.395 MB / 472.9 MB, free: 86.85 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01274/0.8776, allocations: 8.01 MB / 480.9 MB, free: 83.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.57e-05/0.8777, allocations: 73.81 kB / 481 MB, free: 83.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=305): time 5.06e-06/0.8777, allocations: 0 / 481 MB, free: 83.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=324): time 0.02593/0.9037, allocations: 16 MB / 497 MB, free: 73.46 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.784e-05/0.9038, allocations: 89.94 kB / 497.1 MB, free: 73.36 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00531/0.9091, allocations: 3.965 MB / 0.4893 GB, free: 69.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002517/0.9093, allocations: 92.44 kB / 0.4894 GB, free: 69.28 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001763/0.9111, allocations: 3.083 MB / 0.4924 GB, free: 66.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00063/0.9117, allocations: 1.097 MB / 0.4935 GB, free: 65.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/0.9119, allocations: 72 kB / 0.4935 GB, free: 65.03 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.9121, allocations: 462.1 kB / 0.494 GB, free: 64.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002294/0.9144, allocations: 1.862 MB / 0.4958 GB, free: 62.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002495/0.9169, allocations: 2.831 MB / 0.4986 GB, free: 59.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002603/0.9195, allocations: 2.291 MB / 0.5008 GB, free: 57.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.26e-05/0.9195, allocations: 12 kB / 0.5008 GB, free: 57.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008079/0.9276, allocations: 6.382 MB / 0.507 GB, free: 50.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.81e-05/0.9277, allocations: 23.84 kB / 0.5071 GB, free: 50.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.101e-05/0.9277, allocations: 28 kB / 0.5071 GB, free: 50.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002312/0.93, allocations: 1.266 MB / 0.5083 GB, free: 49.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002539/0.9326, allocations: 0.8152 MB / 0.5091 GB, free: 48.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01411/0.9467, allocations: 20.74 MB / 0.5294 GB, free: 26.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00341/0.9501, allocations: 203.9 kB / 0.5296 GB, free: 26.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002296/0.9504, allocations: 152 kB / 0.5297 GB, free: 25.95 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.003734/0.9541, allocations: 2.184 MB / 0.5318 GB, free: 23.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006214/0.9547, allocations: 450.5 kB / 0.5323 GB, free: 23.31 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007927/0.9627, allocations: 6.046 MB / 0.5382 GB, free: 17.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.682e-05/0.9627, allocations: 32 kB / 0.5382 GB, free: 17.05 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.726e-05/0.9627, allocations: 16 kB / 0.5382 GB, free: 17.04 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.472e-05/0.9628, allocations: 19.94 kB / 0.5382 GB, free: 17.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01597/0.9787, allocations: 12.36 MB / 0.5503 GB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.9788, allocations: 0 / 0.5503 GB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001729/0.9805, allocations: 463.7 kB / 0.5508 GB, free: 3.988 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003158/0.9837, allocations: 1.608 MB / 0.5523 GB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002436/0.9839, allocations: 79.97 kB / 0.5524 GB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02834/1.012, allocations: 30.17 MB / 0.5819 GB, free: 1.973 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.822e-06/1.012, allocations: 7.938 kB / 0.5819 GB, free: 1.965 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01357/1.026, allocations: 8.648 MB / 0.5903 GB, free: 9.074 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002533/1.028, allocations: 0.9134 MB / 0.5912 GB, free: 8.137 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007698/1.029, allocations: 75.94 kB / 0.5913 GB, free: 8.062 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001857/1.031, allocations: 195.8 kB / 0.5915 GB, free: 7.871 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006598/1.032, allocations: 273.9 kB / 0.5917 GB, free: 7.602 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002066/1.032, allocations: 95.97 kB / 0.5918 GB, free: 7.508 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004666/1.037, allocations: 2.686 MB / 0.5944 GB, free: 4.816 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.037, allocations: 0 / 0.5944 GB, free: 4.816 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005706/1.042, allocations: 1.327 MB / 0.5957 GB, free: 3.492 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.0006318/1.043, allocations: 245.5 kB / 0.596 GB, free: 3.246 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0093/1.052, allocations: 6.32 MB / 0.6021 GB, free: 12.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/1.052, allocations: 4 kB / 0.6021 GB, free: 12.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006692/1.059, allocations: 4.793 MB / 0.6068 GB, free: 7.68 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006293/1.065, allocations: 1.275 MB / 0.6081 GB, free: 6.398 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.215/1.28, allocations: 15.77 MB / 0.6235 GB, free: 143.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003993/1.284, allocations: 4.482 MB / 0.6278 GB, free: 142.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003624/1.288, allocations: 1.056 MB / 0.6289 GB, free: 142.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007167/1.289, allocations: 271.6 kB / 0.6291 GB, free: 142.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/1.289, allocations: 0 / 0.6291 GB, free: 142.3 MB / 446.1 MB Notification: Performance of Templates: time 0.09778/1.387, allocations: 68.42 MB / 0.696 GB, free: 84.4 MB / 446.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1)