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.001607/0.001607, allocations: 108.3 kB / 17.06 MB, free: 5.824 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.001826/0.001826, allocations: 191 kB / 18 MB, free: 4.977 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.382/1.382, 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.001176/0.001176, allocations: 47.94 kB / 327.9 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09219/0.09338, allocations: 46.62 MB / 374.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.1727/0.2661, allocations: 12.82 MB / 387.3 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007105/0.2733, allocations: 4.29 MB / 391.6 MB, free: 3.203 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002107/0.2755, allocations: 65.19 kB / 391.7 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00278/0.2783, allocations: 1.011 MB / 392.7 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004446/0.2828, allocations: 1.329 MB / 394 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002076/0.2849, allocations: 0.8569 MB / 394.9 MB, free: 1.219 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005699/0.2906, allocations: 4.037 MB / 398.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003988/0.2946, allocations: 3.189 MB / 402.1 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003532/0.2981, allocations: 1.897 MB / 404 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003682/0.3018, allocations: 2.111 MB / 406.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009443/0.3028, allocations: 0.5101 MB / 406.6 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001794/0.3046, allocations: 0.7121 MB / 407.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001028/0.3056, allocations: 1.141 MB / 408.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002528/0.3081, allocations: 2.123 MB / 410.6 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006445/0.3146, allocations: 6.74 MB / 417.3 MB, free: 4.461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.3146, allocations: 4 kB / 417.3 MB, free: 4.457 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3146, allocations: 3.938 kB / 417.3 MB, free: 4.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001259/0.3148, allocations: 1.625 kB / 417.3 MB, free: 4.453 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.01125/0.326, allocations: 4.387 MB / 421.7 MB, free: 324 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.3261, allocations: 15.89 kB / 421.7 MB, free: 308 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004045/0.3301, allocations: 0.8163 MB / 422.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003777/0.3339, allocations: 2.319 MB / 424.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001629/0.3341, allocations: 234.6 kB / 425.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004499/0.3346, allocations: 312.3 kB / 425.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006566/0.3411, allocations: 4.262 MB / 429.7 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.49e-05/0.3412, allocations: 11.84 kB / 429.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002899/0.3415, allocations: 124 kB / 429.8 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001242/0.3417, allocations: 146.2 kB / 429.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005767/0.3474, allocations: 3.659 MB / 433.6 MB, free: 4.312 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01923/0.3667, allocations: 13.33 MB / 446.9 MB, free: 6.629 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005824/0.3725, allocations: 6.858 MB / 453.8 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002194/0.3748, allocations: 1.417 MB / 455.2 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00584/0.3806, allocations: 3.624 MB / 458.8 MB, free: 9.734 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/0.3807, allocations: 43.56 kB / 458.9 MB, free: 9.684 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 2.845e-06/0.3807, allocations: 0 / 458.9 MB, free: 9.684 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01294/0.3936, allocations: 6.645 MB / 465.5 MB, free: 2.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/0.3937, allocations: 68.72 kB / 465.6 MB, free: 2.758 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002612/0.3963, allocations: 1.859 MB / 467.4 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.431e-05/0.3964, allocations: 45.7 kB / 467.5 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009518/0.3974, allocations: 1.423 MB / 468.9 MB, free: 15.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003629/0.3978, allocations: 492.8 kB / 469.4 MB, free: 14.92 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004743/0.3982, allocations: 307.3 kB / 469.7 MB, free: 14.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.688e-05/0.3983, allocations: 305.1 kB / 470 MB, free: 14.31 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001233/0.3996, allocations: 0.7652 MB / 470.8 MB, free: 13.55 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001478/0.4011, allocations: 1.224 MB / 472 MB, free: 12.13 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002802/0.4039, allocations: 2.108 MB / 474.1 MB, free: 9.832 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.597e-06/0.4039, allocations: 4 kB / 474.1 MB, free: 9.828 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004319/0.4082, allocations: 2.655 MB / 476.8 MB, free: 7.156 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/0.4083, allocations: 19.88 kB / 476.8 MB, free: 7.137 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.975e-05/0.4083, allocations: 12 kB / 476.8 MB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00129/0.4096, allocations: 0.4974 MB / 477.3 MB, free: 6.621 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001386/0.411, allocations: 387.4 kB / 477.7 MB, free: 6.242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008443/0.4194, allocations: 6.924 MB / 484.6 MB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001538/0.421, allocations: 71.97 kB / 484.7 MB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002103/0.4212, allocations: 71.92 kB / 484.7 MB, free: 14.89 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.001903/0.4231, allocations: 1.048 MB / 485.8 MB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005083/0.4237, allocations: 193.6 kB / 486 MB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004293/0.428, allocations: 2.5 MB / 488.5 MB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.608e-05/0.428, allocations: 16 kB / 488.5 MB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.105e-05/0.428, allocations: 7.938 kB / 488.5 MB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.428, allocations: 7.969 kB / 488.5 MB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009711/0.4378, allocations: 5.541 MB / 494 MB, free: 5.359 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.4378, allocations: 0 / 494 MB, free: 5.359 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009557/0.4387, allocations: 215.7 kB / 494.2 MB, free: 5.148 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001253/0.44, allocations: 0.5 MB / 494.7 MB, free: 4.633 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001139/0.4401, allocations: 35.98 kB / 494.8 MB, free: 4.598 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01027/0.4504, allocations: 11.41 MB / 0.4943 GB, free: 8.492 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.4504, allocations: 3.938 kB / 0.4943 GB, free: 8.488 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005667/0.4561, allocations: 3.562 MB / 0.4978 GB, free: 4.836 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001218/0.4573, allocations: 454.6 kB / 0.4982 GB, free: 4.371 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000583/0.4579, allocations: 32 kB / 0.4983 GB, free: 4.34 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/0.4591, allocations: 67.94 kB / 0.4983 GB, free: 4.273 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002425/0.4593, allocations: 117 kB / 0.4984 GB, free: 4.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.841e-05/0.4594, allocations: 39.98 kB / 0.4985 GB, free: 4.121 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002369/0.4618, allocations: 1.286 MB / 0.4997 GB, free: 2.844 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4618, allocations: 0 / 0.4997 GB, free: 2.844 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002465/0.4643, allocations: 0.5903 MB / 0.5003 GB, free: 2.254 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.0003224/0.4646, allocations: 159 kB / 0.5005 GB, free: 2.09 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004031/0.4687, allocations: 2.406 MB / 0.5028 GB, free: 15.66 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.4687, allocations: 3.938 kB / 0.5028 GB, free: 15.66 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002432/0.4711, allocations: 1.724 MB / 0.5045 GB, free: 13.87 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002386/0.4735, allocations: 0.5065 MB / 0.505 GB, free: 13.36 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01188/0.4854, allocations: 5.927 MB / 0.5108 GB, free: 7.383 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00278/0.4882, allocations: 2.37 MB / 0.5131 GB, free: 4.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001273/0.4895, allocations: 416.7 kB / 0.5135 GB, free: 4.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003309/0.4899, allocations: 135.4 kB / 0.5136 GB, free: 4.438 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4899, allocations: 0 / 0.5136 GB, free: 4.438 MB / 446.1 MB Notification: Performance of Templates: time 0.05233/0.5422, allocations: 31.53 MB / 0.5444 GB, free: 4.852 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)