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.005935/0.005934, allocations: 102 kB / 15.73 MB, free: 6.477 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.001175/0.001175, allocations: 195.6 kB / 16.67 MB, free: 6.391 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.4/1.4, allocations: 205.1 MB / 222.6 MB, free: 4.547 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.001196/0.001196, allocations: 47.22 kB / 326.6 MB, free: 14.25 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09953/0.1007, allocations: 46.62 MB / 373.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01376/0.1145, allocations: 12.82 MB / 386 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008712/0.1233, allocations: 4.295 MB / 390.3 MB, free: 148 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002456/0.1258, allocations: 63.75 kB / 390.3 MB, free: 84 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003276/0.1291, allocations: 1.01 MB / 391.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004422/0.1336, allocations: 1.332 MB / 392.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002125/0.1357, allocations: 0.8573 MB / 393.5 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004984/0.1407, allocations: 4.04 MB / 397.6 MB, free: 8.812 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003409/0.1441, allocations: 3.18 MB / 400.8 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00253/0.1467, allocations: 1.9 MB / 402.7 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002676/0.1494, allocations: 2.117 MB / 404.8 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006476/0.15, allocations: 0.5117 MB / 405.3 MB, free: 1.016 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001249/0.1513, allocations: 0.7107 MB / 406 MB, free: 312 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009667/0.1523, allocations: 1.138 MB / 407.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002147/0.1544, allocations: 2.12 MB / 409.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006131/0.1606, allocations: 6.738 MB / 416 MB, free: 6.277 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1606, allocations: 0 / 416 MB, free: 6.277 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1606, allocations: 0 / 416 MB, free: 6.277 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001272/0.1607, allocations: 4 kB / 416 MB, free: 6.273 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.01182/0.1726, allocations: 4.402 MB / 420.4 MB, free: 1.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.1726, allocations: 12.03 kB / 420.4 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004652/0.1773, allocations: 0.8085 MB / 421.2 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004135/0.1815, allocations: 2.319 MB / 423.5 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001729/0.1816, allocations: 238.6 kB / 423.8 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004778/0.1821, allocations: 316 kB / 424.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007202/0.1893, allocations: 4.254 MB / 428.3 MB, free: 9.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.916e-05/0.1894, allocations: 7.906 kB / 428.4 MB, free: 9.742 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002836/0.1897, allocations: 128 kB / 428.5 MB, free: 9.617 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001433/0.1899, allocations: 146.2 kB / 428.6 MB, free: 9.473 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006413/0.1963, allocations: 3.651 MB / 432.3 MB, free: 5.812 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02071/0.217, allocations: 13.34 MB / 445.6 MB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006369/0.2234, allocations: 6.857 MB / 452.5 MB, free: 372 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1743/0.3978, allocations: 1.407 MB / 453.9 MB, free: 67.94 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006878/0.4047, allocations: 3.626 MB / 457.5 MB, free: 66.78 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/0.4048, allocations: 45.09 kB / 457.5 MB, free: 66.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 2.855e-06/0.4048, allocations: 0 / 457.5 MB, free: 66.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01462/0.4194, allocations: 6.637 MB / 464.2 MB, free: 63.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.4195, allocations: 66.03 kB / 464.2 MB, free: 63.47 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002757/0.4223, allocations: 1.858 MB / 466.1 MB, free: 62.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001258/0.4224, allocations: 51.64 kB / 466.2 MB, free: 62.71 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007682/0.4232, allocations: 1.414 MB / 467.6 MB, free: 61.64 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003035/0.4235, allocations: 0.499 MB / 468.1 MB, free: 61.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004668/0.424, allocations: 305.1 kB / 468.4 MB, free: 61.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.661e-05/0.424, allocations: 305.1 kB / 468.7 MB, free: 60.81 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/0.4252, allocations: 0.7616 MB / 469.4 MB, free: 60.51 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001271/0.4264, allocations: 1.217 MB / 470.6 MB, free: 59.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0023/0.4287, allocations: 2.114 MB / 472.8 MB, free: 58.33 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.4288, allocations: 3.938 kB / 472.8 MB, free: 58.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.003922/0.4327, allocations: 2.655 MB / 475.4 MB, free: 57.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.977e-05/0.4327, allocations: 11.78 kB / 475.4 MB, free: 57.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.139e-05/0.4328, allocations: 15.78 kB / 475.4 MB, free: 57.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001241/0.434, allocations: 0.4963 MB / 475.9 MB, free: 57.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001375/0.4354, allocations: 389 kB / 476.3 MB, free: 57.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006819/0.4422, allocations: 6.94 MB / 483.3 MB, free: 51.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001644/0.4439, allocations: 74.89 kB / 483.3 MB, free: 51.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001502/0.4441, allocations: 64.25 kB / 483.4 MB, free: 51.54 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.002291/0.4464, allocations: 1.052 MB / 484.4 MB, free: 50.83 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006226/0.447, allocations: 198.8 kB / 484.6 MB, free: 50.72 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003731/0.4507, allocations: 2.498 MB / 487.1 MB, free: 48.35 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.4508, allocations: 16 kB / 487.2 MB, free: 48.33 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.4508, allocations: 11.94 kB / 487.2 MB, free: 48.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.4508, allocations: 7.969 kB / 487.2 MB, free: 48.31 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007574/0.4584, allocations: 5.523 MB / 492.7 MB, free: 42.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.4584, allocations: 4.875 kB / 492.7 MB, free: 42.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009041/0.4593, allocations: 219.7 kB / 492.9 MB, free: 42.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001108/0.4605, allocations: 0.4941 MB / 493.4 MB, free: 41.96 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.743e-05/0.4606, allocations: 35.98 kB / 493.4 MB, free: 41.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007483/0.4681, allocations: 11.41 MB / 0.493 GB, free: 29.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.4681, allocations: 6.469 kB / 0.493 GB, free: 29.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004392/0.4725, allocations: 3.563 MB / 0.4965 GB, free: 26.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008013/0.4733, allocations: 454.6 kB / 0.4969 GB, free: 25.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002193/0.4735, allocations: 28 kB / 0.497 GB, free: 25.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008664/0.4744, allocations: 75.94 kB / 0.497 GB, free: 25.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002233/0.4746, allocations: 113 kB / 0.4971 GB, free: 25.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.781e-05/0.4747, allocations: 39.98 kB / 0.4972 GB, free: 25.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001464/0.4762, allocations: 1.286 MB / 0.4984 GB, free: 24.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4762, allocations: 4 kB / 0.4984 GB, free: 24.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001784/0.478, allocations: 0.5924 MB / 0.499 GB, free: 23.61 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.0002775/0.4783, allocations: 157.7 kB / 0.4992 GB, free: 23.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003217/0.4815, allocations: 2.407 MB / 0.5015 GB, free: 21.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.4815, allocations: 0 / 0.5015 GB, free: 21.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001926/0.4834, allocations: 1.716 MB / 0.5032 GB, free: 19.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001879/0.4853, allocations: 0.5174 MB / 0.5037 GB, free: 18.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007738/0.4931, allocations: 5.931 MB / 0.5095 GB, free: 12.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001517/0.4946, allocations: 2.365 MB / 0.5118 GB, free: 10.4 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001011/0.4956, allocations: 416.8 kB / 0.5122 GB, free: 9.992 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002997/0.496, allocations: 135.4 kB / 0.5123 GB, free: 9.859 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.496, allocations: 0 / 0.5123 GB, free: 9.859 MB / 382.1 MB Notification: Performance of Templates: time 0.04813/0.5441, allocations: 31.54 MB / 0.5431 GB, free: 10.28 MB / 414.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)