Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.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.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009908/0.0009907, allocations: 98.92 kB / 15.05 MB, free: 1.105 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.0009321/0.0009322, allocations: 177.3 kB / 15.95 MB, free: 216 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.702/1.702, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004744/0.0004745, allocations: 12 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2699/0.2703, allocations: 47.58 MB / 326.5 MB, free: 1.625 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.0157/0.2861, allocations: 13.47 MB / 339.9 MB, free: 6.156 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01365/0.2998, allocations: 5.507 MB / 345.4 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00495/0.3048, allocations: 87.56 kB / 345.5 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005007/0.3099, allocations: 1.049 MB / 346.6 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00804/0.318, allocations: 1.515 MB / 348.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003989/0.322, allocations: 0.6978 MB / 348.8 MB, free: 13.28 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01246/0.3345, allocations: 4.18 MB / 353 MB, free: 9.086 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01014/0.3447, allocations: 3.47 MB / 356.4 MB, free: 5.562 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006672/0.3514, allocations: 1.938 MB / 358.4 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006792/0.3583, allocations: 2.334 MB / 360.7 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002612/0.361, allocations: 328 kB / 361 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004755/0.3658, allocations: 0.5348 MB / 361.6 MB, free: 428 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003477/0.3693, allocations: 1.234 MB / 362.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003954/0.3733, allocations: 1.143 MB / 363.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01407/0.3874, allocations: 8.527 MB / 372.5 MB, free: 5.477 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.3875, allocations: 0 / 372.5 MB, free: 5.477 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.577e-06/0.3875, allocations: 0 / 372.5 MB, free: 5.477 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0005191/0.3881, allocations: 0 / 372.5 MB, free: 5.477 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01755/0.4056, allocations: 5.516 MB / 378 MB, free: 15.88 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.4e-05/0.4057, allocations: 8.031 kB / 378 MB, free: 15.87 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006499/0.4122, allocations: 1.067 MB / 379.1 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009233/0.4215, allocations: 3.264 MB / 382.3 MB, free: 11.46 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004481/0.422, allocations: 365.7 kB / 382.7 MB, free: 11.1 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002231/0.4242, allocations: 479.9 kB / 383.1 MB, free: 10.63 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02062/0.4449, allocations: 6.806 MB / 389.9 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001818/0.4451, allocations: 3.938 kB / 390 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001351/0.4465, allocations: 204 kB / 390.2 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002827/0.4468, allocations: 237.8 kB / 390.4 MB, free: 3.305 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01449/0.4613, allocations: 5.91 MB / 396.3 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04712/0.5085, allocations: 21 MB / 417.3 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01196/0.5205, allocations: 9.953 MB / 427.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01298/0.5335, allocations: 5.436 MB / 432.7 MB, free: 7.414 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.626e-05/0.5337, allocations: 60.56 kB / 432.7 MB, free: 7.344 MB / 366.1 MB Notification: Performance of pre-optimization done (n=227): time 4.308e-06/0.5337, allocations: 0 / 432.7 MB, free: 7.344 MB / 366.1 MB Notification: Performance of matching and sorting (n=234): time 0.02241/0.5561, allocations: 9.834 MB / 442.6 MB, free: 13.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/0.5562, allocations: 77.41 kB / 442.7 MB, free: 13.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006713/0.5629, allocations: 2.917 MB / 445.6 MB, free: 10.3 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006015/0.5636, allocations: 69.7 kB / 445.6 MB, free: 10.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001959/0.5655, allocations: 2.145 MB / 447.8 MB, free: 8.059 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001148/0.5667, allocations: 0.7894 MB / 448.6 MB, free: 7.258 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000187/0.5669, allocations: 52 kB / 448.6 MB, free: 7.207 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002331/0.5671, allocations: 415.2 kB / 449 MB, free: 6.797 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002381/0.5695, allocations: 1.325 MB / 450.4 MB, free: 5.469 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00286/0.5724, allocations: 1.937 MB / 452.3 MB, free: 3.277 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002878/0.5753, allocations: 1.626 MB / 453.9 MB, free: 1.629 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.152e-05/0.5754, allocations: 8 kB / 453.9 MB, free: 1.621 MB / 382.1 MB Notification: Performance of matching and sorting (n=334) (initialization): time 0.2459/0.8213, allocations: 4.31 MB / 458.2 MB, free: 105.1 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.344e-05/0.8214, allocations: 16.39 kB / 458.3 MB, free: 105.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.943e-05/0.8214, allocations: 17.62 kB / 458.3 MB, free: 105.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00277/0.8242, allocations: 0.7667 MB / 459 MB, free: 105.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003062/0.8273, allocations: 0.5846 MB / 459.6 MB, free: 105 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009388/0.8367, allocations: 10.21 MB / 469.8 MB, free: 97.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00298/0.8398, allocations: 115.2 kB / 469.9 MB, free: 97.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000521/0.8403, allocations: 101.2 kB / 470 MB, free: 97.41 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (284): * Single equations (assignments): 279 * 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: 4 * 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: 4 {(1,100.0%) 8,(1,100.0%) 1,(3,88.9%) 25,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004126/0.8444, allocations: 1.613 MB / 471.7 MB, free: 96.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001045/0.8455, allocations: 314.5 kB / 472 MB, free: 96.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006598/0.8521, allocations: 4.01 MB / 476 MB, free: 94.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.236e-05/0.8522, allocations: 23.06 kB / 476 MB, free: 94.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.712e-05/0.8522, allocations: 11 kB / 476 MB, free: 94.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-05/0.8523, allocations: 10.97 kB / 476 MB, free: 94.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01632/0.8686, allocations: 8.705 MB / 484.7 MB, free: 88.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.214e-05/0.8686, allocations: 3.953 kB / 484.7 MB, free: 88.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001559/0.8702, allocations: 371.8 kB / 485.1 MB, free: 88.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00281/0.873, allocations: 0.9305 MB / 486 MB, free: 87.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002503/0.8733, allocations: 63.97 kB / 486.1 MB, free: 87.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01181/0.8851, allocations: 14.65 MB / 0.489 GB, free: 71.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.8852, allocations: 8.094 kB / 0.489 GB, free: 71.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008465/0.8936, allocations: 6.017 MB / 0.4949 GB, free: 65.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002232/0.8959, allocations: 0.6886 MB / 0.4956 GB, free: 65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007229/0.8967, allocations: 55.98 kB / 0.4956 GB, free: 64.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001629/0.8983, allocations: 127.9 kB / 0.4957 GB, free: 64.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000448/0.8988, allocations: 189.7 kB / 0.4959 GB, free: 64.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001402/0.8989, allocations: 63.94 kB / 0.496 GB, free: 64.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002912/0.9019, allocations: 2.011 MB / 0.4979 GB, free: 62.56 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.9019, allocations: 0 / 0.4979 GB, free: 62.56 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003828/0.9057, allocations: 0.9453 MB / 0.4989 GB, free: 61.62 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 158 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 1,(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.0007384/0.9065, allocations: 228.2 kB / 0.4991 GB, free: 61.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005713/0.9122, allocations: 3.986 MB / 0.503 GB, free: 57.35 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/0.9122, allocations: 0 / 0.503 GB, free: 57.35 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003957/0.9162, allocations: 2.703 MB / 0.5056 GB, free: 54.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004914/0.9211, allocations: 0.8543 MB / 0.5064 GB, free: 53.72 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02539/0.9466, allocations: 11.27 MB / 0.5174 GB, free: 42.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00651/0.9532, allocations: 3.52 MB / 0.5209 GB, free: 38.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003871/0.9571, allocations: 0.7566 MB / 0.5216 GB, free: 38.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00109/0.9582, allocations: 195.4 kB / 0.5218 GB, free: 37.9 MB / 382.1 MB Notification: Performance of SimCode: time 1.262e-06/0.9582, allocations: 4 kB / 0.5218 GB, free: 37.9 MB / 382.1 MB Notification: Performance of Templates: time 0.08532/1.044, allocations: 46.99 MB / 0.5677 GB, free: 6.848 MB / 398.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1) Environment - environmentSimulation: