Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.009738/0.009738, allocations: 100.8 kB / 15.73 MB, free: 6.047 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.002096/0.002096, allocations: 197.1 kB / 16.68 MB, free: 5.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.397/1.397, allocations: 205.1 MB / 222.5 MB, free: 4.531 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.00133/0.00133, allocations: 51.17 kB / 326.6 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09351/0.09485, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01454/0.1094, allocations: 12.82 MB / 386 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008977/0.1184, allocations: 4.291 MB / 390.3 MB, free: 120 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002641/0.1212, allocations: 63.75 kB / 390.4 MB, free: 56 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00345/0.1247, allocations: 0.9785 MB / 391.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004719/0.1294, allocations: 1.281 MB / 392.6 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003094/0.1325, allocations: 0.8534 MB / 393.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006121/0.1387, allocations: 4.043 MB / 397.5 MB, free: 8.867 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005229/0.1439, allocations: 3.176 MB / 400.7 MB, free: 5.617 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003089/0.147, allocations: 1.881 MB / 402.6 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00348/0.1505, allocations: 2.113 MB / 404.7 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001212/0.1518, allocations: 0.5078 MB / 405.2 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001836/0.1536, allocations: 0.7146 MB / 405.9 MB, free: 396 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009865/0.1546, allocations: 1.138 MB / 407 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002277/0.1569, allocations: 2.124 MB / 409.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006862/0.1638, allocations: 6.73 MB / 415.9 MB, free: 6.363 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.1638, allocations: 0 / 415.9 MB, free: 6.363 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1638, allocations: 3.938 kB / 415.9 MB, free: 6.359 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001321/0.164, allocations: 8 kB / 415.9 MB, free: 6.352 MB / 350.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.01166/0.1756, allocations: 4.402 MB / 420.3 MB, free: 1.875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.1757, allocations: 11.89 kB / 420.3 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004303/0.18, allocations: 0.8124 MB / 421.1 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004465/0.1845, allocations: 2.319 MB / 423.5 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001855/0.1847, allocations: 238.6 kB / 423.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006199/0.1853, allocations: 312 kB / 424 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007904/0.1932, allocations: 4.254 MB / 428.2 MB, free: 9.828 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.002e-05/0.1934, allocations: 7.891 kB / 428.3 MB, free: 9.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003139/0.1937, allocations: 136 kB / 428.4 MB, free: 9.688 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001443/0.1938, allocations: 146.2 kB / 428.5 MB, free: 9.543 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006435/0.2003, allocations: 3.647 MB / 432.2 MB, free: 5.887 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02248/0.2228, allocations: 13.33 MB / 445.5 MB, free: 8.203 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007035/0.2299, allocations: 6.869 MB / 452.4 MB, free: 444 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1913/0.4212, allocations: 1.407 MB / 453.8 MB, free: 67.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007091/0.4283, allocations: 3.628 MB / 457.4 MB, free: 66.72 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/0.4284, allocations: 45.38 kB / 457.5 MB, free: 66.67 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 3.326e-06/0.4284, allocations: 1.125 kB / 457.5 MB, free: 66.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01392/0.4423, allocations: 6.636 MB / 464.1 MB, free: 63.49 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.56e-05/0.4424, allocations: 66.56 kB / 464.2 MB, free: 63.42 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002809/0.4452, allocations: 1.857 MB / 466 MB, free: 62.71 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001402/0.4453, allocations: 53.8 kB / 466.1 MB, free: 62.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007048/0.446, allocations: 1.422 MB / 467.5 MB, free: 61.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002956/0.4464, allocations: 497.3 kB / 468 MB, free: 61.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004422/0.4468, allocations: 304.1 kB / 468.3 MB, free: 61.06 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.395e-05/0.4468, allocations: 301.1 kB / 468.6 MB, free: 60.76 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001088/0.4479, allocations: 0.7644 MB / 469.3 MB, free: 60.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001252/0.4492, allocations: 1.223 MB / 470.6 MB, free: 59.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00237/0.4516, allocations: 2.11 MB / 472.7 MB, free: 58.28 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.227e-06/0.4516, allocations: 4.781 kB / 472.7 MB, free: 58.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.003968/0.4556, allocations: 2.659 MB / 475.3 MB, free: 57.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.4556, allocations: 11.88 kB / 475.3 MB, free: 57.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/0.4556, allocations: 15.72 kB / 475.4 MB, free: 57.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001218/0.4569, allocations: 0.4925 MB / 475.8 MB, free: 57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001333/0.4582, allocations: 391.6 kB / 476.2 MB, free: 56.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006831/0.4651, allocations: 6.927 MB / 483.2 MB, free: 51.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001443/0.4665, allocations: 70.55 kB / 483.2 MB, free: 51.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.4666, allocations: 75.95 kB / 483.3 MB, free: 51.52 MB / 382.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.001576/0.4682, allocations: 1.048 MB / 484.3 MB, free: 50.81 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003361/0.4686, allocations: 197.6 kB / 484.5 MB, free: 50.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003516/0.4721, allocations: 2.504 MB / 487 MB, free: 48.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/0.4721, allocations: 16 kB / 487.1 MB, free: 48.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.4721, allocations: 7.938 kB / 487.1 MB, free: 48.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.4721, allocations: 11.97 kB / 487.1 MB, free: 48.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00751/0.4797, allocations: 5.519 MB / 492.6 MB, free: 42.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.974e-06/0.4797, allocations: 0 / 492.6 MB, free: 42.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009027/0.4806, allocations: 219.7 kB / 492.8 MB, free: 42.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00117/0.4818, allocations: 0.496 MB / 493.3 MB, free: 42.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-05/0.4819, allocations: 35.98 kB / 493.3 MB, free: 41.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007664/0.4896, allocations: 11.42 MB / 0.4929 GB, free: 29.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.4896, allocations: 8 kB / 0.4929 GB, free: 29.92 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004687/0.4943, allocations: 3.558 MB / 0.4964 GB, free: 26.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001101/0.4954, allocations: 454.6 kB / 0.4968 GB, free: 25.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000459/0.4959, allocations: 32 kB / 0.4969 GB, free: 25.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/0.497, allocations: 71.94 kB / 0.4969 GB, free: 25.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000272/0.4973, allocations: 113 kB / 0.4971 GB, free: 25.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.336e-05/0.4974, allocations: 39.98 kB / 0.4971 GB, free: 25.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001824/0.4992, allocations: 1.286 MB / 0.4983 GB, free: 24.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4993, allocations: 4 kB / 0.4983 GB, free: 24.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002056/0.5013, allocations: 0.5846 MB / 0.4989 GB, free: 23.69 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.0002939/0.5016, allocations: 166.6 kB / 0.4991 GB, free: 23.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003504/0.5051, allocations: 2.402 MB / 0.5014 GB, free: 21.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.688e-06/0.5052, allocations: 0 / 0.5014 GB, free: 21.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002019/0.5072, allocations: 1.72 MB / 0.5031 GB, free: 19.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002191/0.5094, allocations: 0.5191 MB / 0.5036 GB, free: 18.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008881/0.5183, allocations: 5.929 MB / 0.5094 GB, free: 12.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002195/0.5205, allocations: 2.373 MB / 0.5117 GB, free: 10.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001556/0.5221, allocations: 412.8 kB / 0.5121 GB, free: 10.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005678/0.5227, allocations: 131.4 kB / 0.5122 GB, free: 9.926 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5227, allocations: 0 / 0.5122 GB, free: 9.926 MB / 382.1 MB Notification: Performance of Templates: time 0.05473/0.5774, allocations: 31.54 MB / 0.543 GB, free: 10.36 MB / 414.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1)