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.001076/0.001076, allocations: 103 kB / 17.06 MB, free: 5.816 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.001148/0.001148, allocations: 199.9 kB / 18 MB, free: 4.969 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.361/1.361, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001182/0.001182, allocations: 51.94 kB / 327.9 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08761/0.0888, allocations: 46.61 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.1848/0.2736, allocations: 12.82 MB / 387.3 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006844/0.2805, allocations: 4.287 MB / 391.6 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001592/0.2821, allocations: 64.69 kB / 391.7 MB, free: 3.203 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002264/0.2844, allocations: 0.9771 MB / 392.6 MB, free: 2.684 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003366/0.2878, allocations: 1.285 MB / 393.9 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001738/0.2895, allocations: 0.8566 MB / 394.8 MB, free: 1.289 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005024/0.2946, allocations: 4.038 MB / 398.8 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003816/0.2984, allocations: 3.184 MB / 402 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003095/0.3015, allocations: 1.895 MB / 403.9 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003347/0.3049, allocations: 2.112 MB / 406 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008499/0.3058, allocations: 0.5132 MB / 406.5 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001865/0.3076, allocations: 0.7044 MB / 407.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001354/0.309, allocations: 1.146 MB / 408.4 MB, free: 11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003236/0.3122, allocations: 2.123 MB / 410.5 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006782/0.319, allocations: 6.741 MB / 417.2 MB, free: 4.523 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/0.3191, allocations: 1.375 kB / 417.2 MB, free: 4.523 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3191, allocations: 0 / 417.2 MB, free: 4.523 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001162/0.3192, allocations: 0 / 417.2 MB, free: 4.523 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01019/0.3294, allocations: 4.403 MB / 421.6 MB, free: 404 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.3294, allocations: 11.89 kB / 421.7 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004048/0.3335, allocations: 0.8163 MB / 422.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004057/0.3376, allocations: 2.323 MB / 424.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001597/0.3377, allocations: 230.6 kB / 425 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004462/0.3382, allocations: 316.3 kB / 425.3 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006587/0.3448, allocations: 4.262 MB / 429.6 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.366e-05/0.3449, allocations: 11.78 kB / 429.6 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002838/0.3452, allocations: 128 kB / 429.7 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001278/0.3453, allocations: 142.2 kB / 429.9 MB, free: 8.059 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0055/0.3508, allocations: 3.651 MB / 433.5 MB, free: 4.398 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01829/0.3691, allocations: 13.33 MB / 446.8 MB, free: 6.715 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00581/0.3749, allocations: 6.862 MB / 453.7 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002071/0.377, allocations: 1.417 MB / 455.1 MB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005596/0.3826, allocations: 3.624 MB / 458.8 MB, free: 9.816 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.3827, allocations: 47.56 kB / 458.8 MB, free: 9.762 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 2.465e-06/0.3827, allocations: 0 / 458.8 MB, free: 9.762 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01225/0.395, allocations: 6.641 MB / 465.4 MB, free: 2.922 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.635e-05/0.395, allocations: 64.72 kB / 465.5 MB, free: 2.844 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002334/0.3974, allocations: 1.859 MB / 467.4 MB, free: 0.9844 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.575e-05/0.3975, allocations: 53.7 kB / 467.4 MB, free: 0.9258 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009612/0.3985, allocations: 1.416 MB / 468.8 MB, free: 15.49 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003909/0.3989, allocations: 0.4967 MB / 469.3 MB, free: 14.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004586/0.3993, allocations: 307.3 kB / 469.6 MB, free: 14.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.61e-05/0.3994, allocations: 301.1 kB / 469.9 MB, free: 14.38 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001157/0.4006, allocations: 0.7652 MB / 470.7 MB, free: 13.62 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001487/0.4021, allocations: 1.216 MB / 471.9 MB, free: 12.21 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002618/0.4047, allocations: 2.108 MB / 474 MB, free: 9.91 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.4047, allocations: 4 kB / 474 MB, free: 9.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004093/0.4088, allocations: 2.663 MB / 476.7 MB, free: 7.227 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.623e-05/0.4089, allocations: 15.94 kB / 476.7 MB, free: 7.211 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.803e-05/0.4089, allocations: 12.28 kB / 476.7 MB, free: 7.199 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00127/0.4102, allocations: 0.4971 MB / 477.2 MB, free: 6.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001451/0.4116, allocations: 387.4 kB / 477.6 MB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007866/0.4195, allocations: 6.924 MB / 484.5 MB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.4209, allocations: 71.95 kB / 484.6 MB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/0.421, allocations: 79.92 kB / 484.7 MB, free: 14.96 MB / 414.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.001568/0.4226, allocations: 1.044 MB / 485.7 MB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002879/0.4229, allocations: 197.6 kB / 485.9 MB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00394/0.4268, allocations: 2.496 MB / 488.4 MB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/0.4269, allocations: 16 kB / 488.4 MB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.4269, allocations: 11.94 kB / 488.4 MB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.445e-05/0.4269, allocations: 7.969 kB / 488.4 MB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008004/0.4349, allocations: 5.529 MB / 493.9 MB, free: 5.441 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.4349, allocations: 4 kB / 494 MB, free: 5.438 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009503/0.4359, allocations: 211.7 kB / 494.2 MB, free: 5.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001186/0.4371, allocations: 0.5 MB / 494.7 MB, free: 4.715 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.529e-05/0.4372, allocations: 39.92 kB / 494.7 MB, free: 4.676 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009657/0.4468, allocations: 11.4 MB / 0.4942 GB, free: 8.582 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.4469, allocations: 3.984 kB / 0.4942 GB, free: 8.578 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005111/0.452, allocations: 3.562 MB / 0.4977 GB, free: 4.926 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009713/0.453, allocations: 458.6 kB / 0.4982 GB, free: 4.457 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002195/0.4532, allocations: 36 kB / 0.4982 GB, free: 4.422 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008843/0.4541, allocations: 63.95 kB / 0.4983 GB, free: 4.359 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002404/0.4544, allocations: 113.1 kB / 0.4984 GB, free: 4.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.362e-05/0.4545, allocations: 40.38 kB / 0.4984 GB, free: 4.211 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001715/0.4562, allocations: 1.293 MB / 0.4997 GB, free: 2.926 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4562, allocations: 0 / 0.4997 GB, free: 2.926 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00203/0.4582, allocations: 0.59 MB / 0.5002 GB, free: 2.336 MB / 430.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.0002871/0.4585, allocations: 163 kB / 0.5004 GB, free: 2.168 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003805/0.4623, allocations: 2.402 MB / 0.5027 GB, free: 15.74 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.4623, allocations: 1.938 kB / 0.5027 GB, free: 15.74 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002368/0.4647, allocations: 1.715 MB / 0.5044 GB, free: 13.96 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00201/0.4667, allocations: 0.5145 MB / 0.5049 GB, free: 13.45 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008582/0.4753, allocations: 5.935 MB / 0.5107 GB, free: 7.461 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001843/0.4772, allocations: 2.363 MB / 0.513 GB, free: 5.066 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001135/0.4783, allocations: 416.8 kB / 0.5134 GB, free: 4.656 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003409/0.4787, allocations: 131.4 kB / 0.5135 GB, free: 4.527 MB / 446.1 MB Notification: Performance of SimCode: time 4.5e-07/0.4787, allocations: 0 / 0.5135 GB, free: 4.527 MB / 446.1 MB Notification: Performance of Templates: time 0.05037/0.5291, allocations: 31.99 MB / 0.5448 GB, free: 4.48 MB / 478.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)