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.00128/0.00128, allocations: 107.4 kB / 16.92 MB, free: 5.781 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.001309/0.001309, allocations: 191.5 kB / 17.85 MB, free: 5.195 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.384/1.384, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.00124/0.00124, allocations: 55.92 kB / 280 MB, free: 3.168 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07987/0.08112, allocations: 46.63 MB / 326.6 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01388/0.09503, allocations: 12.82 MB / 339.4 MB, free: 7.586 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007632/0.1027, allocations: 4.292 MB / 343.7 MB, free: 3.277 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001801/0.1046, allocations: 67.69 kB / 343.8 MB, free: 3.211 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00252/0.1071, allocations: 0.9707 MB / 344.8 MB, free: 2.234 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003588/0.1107, allocations: 1.281 MB / 346.1 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001876/0.1126, allocations: 0.8573 MB / 346.9 MB, free: 88 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004371/0.117, allocations: 4.036 MB / 350.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003351/0.1203, allocations: 3.184 MB / 354.1 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0026/0.123, allocations: 1.873 MB / 356 MB, free: 6.895 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002541/0.1255, allocations: 2.106 MB / 358.1 MB, free: 4.781 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006313/0.1262, allocations: 0.5117 MB / 358.6 MB, free: 4.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001294/0.1275, allocations: 0.7224 MB / 359.3 MB, free: 3.547 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009326/0.1284, allocations: 1.137 MB / 360.5 MB, free: 2.406 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002058/0.1305, allocations: 2.128 MB / 362.6 MB, free: 276 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005831/0.1363, allocations: 6.691 MB / 369.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1364, allocations: 4 kB / 369.3 MB, free: 9.555 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1364, allocations: 4 kB / 369.3 MB, free: 9.551 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001445/0.1365, allocations: 0 / 369.3 MB, free: 9.551 MB / 318.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.01101/0.1475, allocations: 4.394 MB / 373.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.1476, allocations: 15.89 kB / 373.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004194/0.1518, allocations: 0.8163 MB / 374.5 MB, free: 4.246 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003927/0.1557, allocations: 2.303 MB / 376.8 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001696/0.1559, allocations: 234.6 kB / 377.1 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005462/0.1565, allocations: 320 kB / 377.4 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1582/0.3146, allocations: 4.247 MB / 381.6 MB, free: 48.39 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.548e-05/0.3147, allocations: 3.141 kB / 381.6 MB, free: 48.39 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002744/0.315, allocations: 127.2 kB / 381.8 MB, free: 48.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001339/0.3152, allocations: 145.1 kB / 381.9 MB, free: 48.28 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006354/0.3215, allocations: 3.655 MB / 385.5 MB, free: 46.85 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02073/0.3423, allocations: 13.5 MB / 399.1 MB, free: 38.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004918/0.3473, allocations: 6.864 MB / 405.9 MB, free: 31.58 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001817/0.3491, allocations: 1.408 MB / 407.3 MB, free: 30.89 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004874/0.354, allocations: 3.645 MB / 411 MB, free: 28.26 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.464e-05/0.354, allocations: 50.69 kB / 411 MB, free: 28.21 MB / 318.1 MB Notification: Performance of pre-optimization done (n=124): time 2.675e-06/0.3541, allocations: 0 / 411 MB, free: 28.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=144): time 0.01108/0.3651, allocations: 6.632 MB / 417.7 MB, free: 21.68 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.779e-05/0.3652, allocations: 64.72 kB / 417.7 MB, free: 21.61 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002111/0.3673, allocations: 1.859 MB / 419.6 MB, free: 19.75 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.3674, allocations: 53.7 kB / 419.6 MB, free: 19.69 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005962/0.368, allocations: 1.412 MB / 421 MB, free: 18.27 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002408/0.3683, allocations: 0.4958 MB / 421.5 MB, free: 17.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003736/0.3687, allocations: 305.2 kB / 421.8 MB, free: 17.47 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.567e-05/0.3687, allocations: 301.1 kB / 422.1 MB, free: 17.18 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009542/0.3697, allocations: 0.7691 MB / 422.9 MB, free: 16.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/0.3708, allocations: 1.22 MB / 424.1 MB, free: 14.99 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002162/0.373, allocations: 2.104 MB / 426.2 MB, free: 12.7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.214e-06/0.373, allocations: 4 kB / 426.2 MB, free: 12.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.003719/0.3767, allocations: 2.67 MB / 428.9 MB, free: 10.01 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.3768, allocations: 12 kB / 428.9 MB, free: 10 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.837e-05/0.3768, allocations: 15.84 kB / 428.9 MB, free: 9.988 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001162/0.3779, allocations: 0.5017 MB / 429.4 MB, free: 9.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.3793, allocations: 387.4 kB / 429.8 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006419/0.3857, allocations: 6.933 MB / 436.7 MB, free: 1.895 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001417/0.3871, allocations: 75.89 kB / 436.8 MB, free: 1.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/0.3872, allocations: 82.05 kB / 436.9 MB, free: 1.742 MB / 318.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.001346/0.3886, allocations: 1.044 MB / 437.9 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002755/0.3889, allocations: 189.7 kB / 438.1 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004039/0.3929, allocations: 2.51 MB / 440.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.393, allocations: 15.94 kB / 440.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/0.393, allocations: 8 kB / 440.6 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.467e-05/0.393, allocations: 7.969 kB / 440.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008608/0.4016, allocations: 5.528 MB / 446.2 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/0.4016, allocations: 1.75 kB / 446.2 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009832/0.4026, allocations: 219.9 kB / 446.4 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001236/0.4039, allocations: 0.4947 MB / 446.9 MB, free: 7.539 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/0.404, allocations: 39.92 kB / 446.9 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0107/0.4147, allocations: 11.41 MB / 458.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.4148, allocations: 8.094 kB / 458.4 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005517/0.4203, allocations: 3.564 MB / 461.9 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009262/0.4212, allocations: 458.6 kB / 462.4 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002581/0.4215, allocations: 32 kB / 462.4 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000912/0.4224, allocations: 63.95 kB / 462.5 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002707/0.4227, allocations: 113.1 kB / 462.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.081e-05/0.4228, allocations: 36 kB / 462.6 MB, free: 7.055 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001787/0.4246, allocations: 1.293 MB / 463.9 MB, free: 5.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4246, allocations: 4 kB / 463.9 MB, free: 5.766 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001963/0.4266, allocations: 0.5886 MB / 464.5 MB, free: 5.18 MB / 350.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.0003266/0.4269, allocations: 159.2 kB / 464.6 MB, free: 5.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005722/0.4326, allocations: 2.841 MB / 467.5 MB, free: 2.164 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.4327, allocations: 4 kB / 467.5 MB, free: 2.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002464/0.4351, allocations: 1.715 MB / 469.2 MB, free: 392 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002248/0.4374, allocations: 0.5182 MB / 469.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009545/0.447, allocations: 5.995 MB / 475.7 MB, free: 9.836 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002089/0.4491, allocations: 2.366 MB / 478.1 MB, free: 7.438 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001511/0.4506, allocations: 416.8 kB / 478.5 MB, free: 7.027 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003461/0.451, allocations: 131.4 kB / 478.6 MB, free: 6.898 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.451, allocations: 0 / 478.6 MB, free: 6.898 MB / 366.1 MB Notification: Performance of Templates: time 0.05526/0.5062, allocations: 30.99 MB / 0.4977 GB, free: 7.891 MB / 398.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)