Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.001839/0.001839, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002619/0.002619, allocations: 189.6 kB / 16.25 MB, free: 6.633 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.432/1.432, allocations: 205.1 MB / 222.1 MB, free: 4.711 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.001091/0.001091, allocations: 39.94 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1918/0.1929, allocations: 46.63 MB / 324.9 MB, free: 1.949 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01213/0.2051, allocations: 12.68 MB / 337.5 MB, free: 7.383 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007554/0.2127, allocations: 4.219 MB / 341.8 MB, free: 3.152 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002361/0.2151, allocations: 63.75 kB / 341.8 MB, free: 3.09 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002796/0.2179, allocations: 0.8552 MB / 342.7 MB, free: 2.23 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00421/0.2222, allocations: 1.158 MB / 343.8 MB, free: 1.066 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002807/0.225, allocations: 0.7836 MB / 344.6 MB, free: 288 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.007574/0.2326, allocations: 4.188 MB / 348.8 MB, free: 12.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005579/0.2382, allocations: 3.18 MB / 352 MB, free: 8.82 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003256/0.2415, allocations: 1.76 MB / 353.7 MB, free: 7.055 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004554/0.2461, allocations: 2.098 MB / 355.8 MB, free: 4.949 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001694/0.2478, allocations: 0.5039 MB / 356.3 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002597/0.2504, allocations: 0.7146 MB / 357.1 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001688/0.2521, allocations: 1.138 MB / 358.2 MB, free: 2.59 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004198/0.2563, allocations: 2.12 MB / 360.3 MB, free: 472 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00953/0.2659, allocations: 6.672 MB / 367 MB, free: 9.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.266, allocations: 0 / 367 MB, free: 9.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.266, allocations: 4 kB / 367 MB, free: 9.766 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001597/0.2661, allocations: 0 / 367 MB, free: 9.766 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01521/0.2814, allocations: 4.378 MB / 371.4 MB, free: 5.312 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.2814, allocations: 8.031 kB / 371.4 MB, free: 5.305 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007574/0.289, allocations: 0.8202 MB / 372.2 MB, free: 4.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006162/0.2952, allocations: 2.264 MB / 374.5 MB, free: 2.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002836/0.2956, allocations: 234.6 kB / 374.7 MB, free: 1.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001034/0.2966, allocations: 320 kB / 375 MB, free: 1.617 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01159/0.3082, allocations: 4.254 MB / 379.3 MB, free: 13.31 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.64e-05/0.3083, allocations: 11.83 kB / 379.3 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004754/0.3088, allocations: 131.9 kB / 379.4 MB, free: 13.17 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002065/0.309, allocations: 146.2 kB / 379.5 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009823/0.3189, allocations: 3.647 MB / 383.2 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03241/0.3513, allocations: 13.5 MB / 396.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009306/0.3607, allocations: 6.878 MB / 403.6 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00358/0.3643, allocations: 1.41 MB / 405 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008077/0.3724, allocations: 3.647 MB / 408.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.288e-05/0.3725, allocations: 51.5 kB / 408.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=124): time 4.669e-06/0.3725, allocations: 0 / 408.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=144): time 0.01389/0.3864, allocations: 6.626 MB / 415.3 MB, free: 7.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.263e-05/0.3865, allocations: 64.72 kB / 415.4 MB, free: 7.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003362/0.3899, allocations: 1.863 MB / 417.2 MB, free: 5.773 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001676/0.39, allocations: 57.64 kB / 417.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001044/0.3911, allocations: 1.408 MB / 418.7 MB, free: 4.285 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004753/0.3916, allocations: 0.4968 MB / 419.2 MB, free: 3.781 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005575/0.3922, allocations: 299.3 kB / 419.5 MB, free: 3.484 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.3923, allocations: 305.1 kB / 419.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.3935, allocations: 0.7652 MB / 420.5 MB, free: 2.418 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001539/0.3951, allocations: 1.216 MB / 421.8 MB, free: 1.012 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002887/0.398, allocations: 2.115 MB / 423.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-05/0.398, allocations: 4 kB / 423.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004723/0.4028, allocations: 2.652 MB / 426.5 MB, free: 12.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.299e-05/0.4028, allocations: 15.94 kB / 426.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.954e-05/0.4028, allocations: 20 kB / 426.6 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001426/0.4043, allocations: 0.5094 MB / 427.1 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001542/0.4058, allocations: 383.5 kB / 427.4 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008552/0.4144, allocations: 6.93 MB / 434.4 MB, free: 3.887 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001483/0.4159, allocations: 79.89 kB / 434.5 MB, free: 3.809 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002225/0.4162, allocations: 80.08 kB / 434.5 MB, free: 3.73 MB / 366.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.001833/0.418, allocations: 1.04 MB / 435.6 MB, free: 2.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000501/0.4185, allocations: 193.6 kB / 435.8 MB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004317/0.4228, allocations: 2.5 MB / 438.3 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.459e-05/0.4229, allocations: 19.94 kB / 438.3 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.435e-05/0.4229, allocations: 4 kB / 438.3 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.714e-05/0.4229, allocations: 15.95 kB / 438.3 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009001/0.4319, allocations: 5.528 MB / 443.8 MB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.432, allocations: 4 kB / 443.8 MB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001022/0.433, allocations: 223.9 kB / 444.1 MB, free: 10 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001377/0.4344, allocations: 0.4959 MB / 444.5 MB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000124/0.4345, allocations: 39.98 kB / 444.6 MB, free: 9.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1745/0.609, allocations: 11.41 MB / 456 MB, free: 108.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.6091, allocations: 4.125 kB / 456 MB, free: 108.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005299/0.6144, allocations: 3.563 MB / 459.6 MB, free: 107.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009554/0.6154, allocations: 458.6 kB / 460 MB, free: 107.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002789/0.6156, allocations: 29.28 kB / 460 MB, free: 107 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009523/0.6166, allocations: 70.17 kB / 460.1 MB, free: 107 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003103/0.6169, allocations: 111.5 kB / 460.2 MB, free: 107 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.23e-05/0.617, allocations: 45.61 kB / 460.3 MB, free: 107 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001851/0.6189, allocations: 1.283 MB / 461.5 MB, free: 106.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6189, allocations: 3.844 kB / 461.6 MB, free: 106.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002237/0.6211, allocations: 0.594 MB / 462.1 MB, free: 106.4 MB / 382.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.0003501/0.6215, allocations: 163.5 kB / 462.3 MB, free: 106.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005348/0.6268, allocations: 2.84 MB / 465.1 MB, free: 105.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.952e-06/0.6269, allocations: 0 / 465.1 MB, free: 105.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002017/0.6289, allocations: 1.712 MB / 466.9 MB, free: 104.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002225/0.6311, allocations: 0.5188 MB / 467.4 MB, free: 104.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008802/0.64, allocations: 7.315 MB / 474.7 MB, free: 99.17 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0017/0.6417, allocations: 2.369 MB / 477.1 MB, free: 97.26 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00158/0.6433, allocations: 412.2 kB / 477.5 MB, free: 96.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003414/0.6437, allocations: 130.4 kB / 477.6 MB, free: 96.84 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6437, allocations: 3.281 kB / 477.6 MB, free: 96.84 MB / 382.1 MB Notification: Performance of Templates: time 0.04559/0.6893, allocations: 30.92 MB / 0.4966 GB, free: 65.99 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1)