Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001553/0.001553, allocations: 111.7 kB / 16.62 MB, free: 6.812 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.001136/0.001136, allocations: 190 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.332/1.332, allocations: 205.1 MB / 223.4 MB, free: 12.45 MB / 190.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.001125/0.001125, allocations: 48.16 kB / 279.5 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0848/0.08593, allocations: 46.62 MB / 326.1 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01392/0.09988, allocations: 12.7 MB / 338.8 MB, free: 8.027 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00742/0.1073, allocations: 4.218 MB / 343.1 MB, free: 3.793 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002297/0.1097, allocations: 59.75 kB / 343.1 MB, free: 3.734 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002635/0.1124, allocations: 0.859 MB / 344 MB, free: 2.871 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003489/0.1159, allocations: 1.162 MB / 345.1 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001795/0.1177, allocations: 0.7758 MB / 345.9 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004411/0.1221, allocations: 4.184 MB / 350.1 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003253/0.1254, allocations: 3.188 MB / 353.3 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002124/0.1275, allocations: 1.764 MB / 355 MB, free: 7.691 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002231/0.1297, allocations: 2.098 MB / 357.1 MB, free: 5.586 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005741/0.1303, allocations: 0.5078 MB / 357.7 MB, free: 5.078 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001202/0.1315, allocations: 0.7146 MB / 358.4 MB, free: 4.363 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000898/0.1324, allocations: 1.134 MB / 359.5 MB, free: 3.227 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002233/0.1347, allocations: 2.12 MB / 361.6 MB, free: 1.098 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006423/0.1411, allocations: 6.668 MB / 368.3 MB, free: 10.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1412, allocations: 4 kB / 368.3 MB, free: 10.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1412, allocations: 0 / 368.3 MB, free: 10.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001406/0.1413, allocations: 0 / 368.3 MB, free: 10.41 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01056/0.1519, allocations: 4.386 MB / 372.7 MB, free: 5.945 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.1519, allocations: 11.89 kB / 372.7 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004101/0.156, allocations: 0.824 MB / 373.5 MB, free: 5.105 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00366/0.1597, allocations: 2.26 MB / 375.8 MB, free: 2.789 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001645/0.1599, allocations: 234.6 kB / 376 MB, free: 2.559 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004739/0.1604, allocations: 316 kB / 376.3 MB, free: 2.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1688/0.3291, allocations: 4.247 MB / 380.6 MB, free: 48.24 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001435/0.3293, allocations: 5.406 kB / 380.6 MB, free: 48.24 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006352/0.33, allocations: 130.2 kB / 380.7 MB, free: 48.14 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002382/0.3302, allocations: 145.3 kB / 380.8 MB, free: 48.13 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007108/0.3373, allocations: 3.652 MB / 384.5 MB, free: 46.7 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02126/0.3586, allocations: 13.51 MB / 398 MB, free: 38.17 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004863/0.3635, allocations: 6.856 MB / 404.9 MB, free: 31.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001869/0.3654, allocations: 1.408 MB / 406.3 MB, free: 30.9 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00496/0.3704, allocations: 3.654 MB / 409.9 MB, free: 28.26 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.218e-05/0.3704, allocations: 49.12 kB / 410 MB, free: 28.21 MB / 318.1 MB Notification: Performance of pre-optimization done (n=124): time 2.445e-06/0.3704, allocations: 0 / 410 MB, free: 28.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=144): time 0.01113/0.3816, allocations: 6.631 MB / 416.6 MB, free: 22.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.536e-05/0.3816, allocations: 68.72 kB / 416.7 MB, free: 22.44 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002211/0.3838, allocations: 1.859 MB / 418.5 MB, free: 20.58 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.255e-05/0.3839, allocations: 49.7 kB / 418.6 MB, free: 20.53 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000553/0.3845, allocations: 1.419 MB / 420 MB, free: 19.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002693/0.3848, allocations: 0.4922 MB / 420.5 MB, free: 18.61 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003928/0.3852, allocations: 299.3 kB / 420.8 MB, free: 18.31 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.155e-05/0.3852, allocations: 305.1 kB / 421.1 MB, free: 18.01 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009653/0.3862, allocations: 0.7691 MB / 421.8 MB, free: 17.24 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001086/0.3873, allocations: 1.22 MB / 423.1 MB, free: 15.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002125/0.3894, allocations: 2.108 MB / 425.2 MB, free: 13.53 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/0.3894, allocations: 4 kB / 425.2 MB, free: 13.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.003681/0.3931, allocations: 2.67 MB / 427.8 MB, free: 10.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.3932, allocations: 8 kB / 427.8 MB, free: 10.83 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.017e-05/0.3932, allocations: 17.86 kB / 427.9 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001272/0.3945, allocations: 0.4939 MB / 428.4 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001368/0.3958, allocations: 391.4 kB / 428.7 MB, free: 9.934 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006553/0.4024, allocations: 6.927 MB / 435.7 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001466/0.4039, allocations: 79.8 kB / 435.7 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002021/0.4041, allocations: 76.09 kB / 435.8 MB, free: 2.578 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (180): * Single equations (assignments): 178 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (7,31,61.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001795/0.4059, allocations: 1.048 MB / 436.9 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004988/0.4064, allocations: 193.7 kB / 437.1 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004067/0.4105, allocations: 2.5 MB / 439.6 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-05/0.4105, allocations: 23.92 kB / 439.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.058e-05/0.4106, allocations: 8 kB / 439.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.471e-05/0.4106, allocations: 3.984 kB / 439.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009477/0.4201, allocations: 5.534 MB / 445.1 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.4201, allocations: 4 kB / 445.1 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001022/0.4211, allocations: 219.9 kB / 445.3 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00131/0.4225, allocations: 0.4942 MB / 445.8 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001204/0.4226, allocations: 35.92 kB / 445.9 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01085/0.4335, allocations: 11.42 MB / 457.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.4335, allocations: 8 kB / 457.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005553/0.439, allocations: 3.56 MB / 460.9 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.4401, allocations: 454.6 kB / 461.3 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004771/0.4406, allocations: 32 kB / 461.3 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/0.4418, allocations: 71.94 kB / 461.4 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002923/0.4421, allocations: 109.1 kB / 461.5 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.776e-05/0.4422, allocations: 39.98 kB / 461.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002243/0.4444, allocations: 1.293 MB / 462.8 MB, free: 6.602 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4444, allocations: 4 kB / 462.8 MB, free: 6.598 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002472/0.4469, allocations: 0.5846 MB / 463.4 MB, free: 6.016 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003669/0.4473, allocations: 155 kB / 463.6 MB, free: 5.859 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006549/0.4538, allocations: 2.853 MB / 466.4 MB, free: 2.992 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.291e-06/0.4539, allocations: 0 / 466.4 MB, free: 2.992 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002588/0.4565, allocations: 1.715 MB / 468.1 MB, free: 1.211 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003174/0.4597, allocations: 0.5177 MB / 468.7 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01182/0.4715, allocations: 7.318 MB / 476 MB, free: 9.344 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002898/0.4744, allocations: 2.363 MB / 478.3 MB, free: 6.949 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001601/0.4761, allocations: 420.8 kB / 478.8 MB, free: 6.535 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004569/0.4765, allocations: 131.4 kB / 478.9 MB, free: 6.406 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4766, allocations: 0 / 478.9 MB, free: 6.406 MB / 366.1 MB Notification: Performance of Templates: time 0.05531/0.5319, allocations: 30.9 MB / 0.4978 GB, free: 7.492 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1)