Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004641/0.004641, allocations: 103.6 kB / 15.73 MB, free: 6.039 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.001029/0.001029, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.495/1.495, allocations: 205.1 MB / 222.6 MB, free: 4.258 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.001138/0.001138, allocations: 46.09 kB / 326.6 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0878/0.08895, allocations: 46.63 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01508/0.1041, allocations: 13.68 MB / 386.9 MB, free: 3.551 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008523/0.1126, allocations: 4.501 MB / 391.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002279/0.115, allocations: 75.69 kB / 391.4 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003129/0.1182, allocations: 1.084 MB / 392.5 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005209/0.1234, allocations: 1.418 MB / 393.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002317/0.1257, allocations: 0.9119 MB / 394.9 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006291/0.132, allocations: 4.752 MB / 399.6 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004408/0.1365, allocations: 3.632 MB / 403.2 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003424/0.1399, allocations: 2.204 MB / 405.4 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003689/0.1436, allocations: 2.46 MB / 407.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009456/0.1446, allocations: 0.5976 MB / 408.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00181/0.1464, allocations: 0.7811 MB / 409.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0013/0.1477, allocations: 1.344 MB / 410.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002908/0.1507, allocations: 2.47 MB / 413.1 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007375/0.158, allocations: 7.766 MB / 420.9 MB, free: 1.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.331e-06/0.1581, allocations: 0 / 420.9 MB, free: 1.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1581, allocations: 0 / 420.9 MB, free: 1.387 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000164/0.1583, allocations: 0 / 420.9 MB, free: 1.387 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: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01221/0.1705, allocations: 5.04 MB / 425.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/0.1706, allocations: 8.031 kB / 425.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004536/0.1751, allocations: 0.8703 MB / 426.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004692/0.1798, allocations: 2.655 MB / 429.4 MB, free: 8.684 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000216/0.1801, allocations: 279.4 kB / 429.7 MB, free: 8.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005956/0.1807, allocations: 359.9 kB / 430.1 MB, free: 8.059 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008587/0.1893, allocations: 5.033 MB / 435.1 MB, free: 2.973 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.677e-05/0.1893, allocations: 11.84 kB / 435.1 MB, free: 2.961 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003551/0.1897, allocations: 148 kB / 435.2 MB, free: 2.816 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001632/0.1899, allocations: 163.2 kB / 435.4 MB, free: 2.656 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007294/0.1972, allocations: 4.377 MB / 439.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2177/0.4149, allocations: 15.7 MB / 455.5 MB, free: 62.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006932/0.4219, allocations: 7.78 MB / 463.3 MB, free: 56.78 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002753/0.4247, allocations: 1.717 MB / 465 MB, free: 56.76 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007494/0.4322, allocations: 4.642 MB / 469.6 MB, free: 54.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.152e-05/0.4322, allocations: 51.09 kB / 469.7 MB, free: 54.83 MB / 382.1 MB Notification: Performance of pre-optimization done (n=161): time 3.467e-06/0.4322, allocations: 0.75 kB / 469.7 MB, free: 54.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=164): time 0.01599/0.4482, allocations: 8.123 MB / 477.8 MB, free: 51.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/0.4483, allocations: 70.08 kB / 477.9 MB, free: 51.06 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002917/0.4512, allocations: 2.162 MB / 480 MB, free: 49.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001348/0.4514, allocations: 49.64 kB / 480.1 MB, free: 49.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008875/0.4523, allocations: 1.622 MB / 481.7 MB, free: 48.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003995/0.4527, allocations: 0.5532 MB / 482.2 MB, free: 48.04 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005315/0.4532, allocations: 358 kB / 482.6 MB, free: 47.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.55e-05/0.4533, allocations: 308.8 kB / 482.9 MB, free: 47.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001319/0.4546, allocations: 0.9391 MB / 483.8 MB, free: 47.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001426/0.4561, allocations: 1.456 MB / 485.3 MB, free: 45.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002706/0.4588, allocations: 2.503 MB / 487.8 MB, free: 44.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/0.4588, allocations: 10.78 kB / 487.8 MB, free: 44.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.004708/0.4635, allocations: 3.353 MB / 491.2 MB, free: 42.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/0.4635, allocations: 10.5 kB / 491.2 MB, free: 42.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.051e-05/0.4636, allocations: 14.72 kB / 491.2 MB, free: 42.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001528/0.4651, allocations: 0.741 MB / 491.9 MB, free: 41.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00128/0.4664, allocations: 382.5 kB / 492.3 MB, free: 41.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008858/0.4753, allocations: 11.33 MB / 0.4918 GB, free: 29.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00176/0.4771, allocations: 90.45 kB / 0.4919 GB, free: 29.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000122/0.4772, allocations: 79.98 kB / 0.492 GB, free: 29.46 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,8,100.0%), (9,19,33.3%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001864/0.4791, allocations: 1.213 MB / 0.4932 GB, free: 28.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003282/0.4794, allocations: 229.1 kB / 0.4934 GB, free: 28.01 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004444/0.4838, allocations: 3.159 MB / 0.4965 GB, free: 24.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.888e-06/0.4839, allocations: 20 kB / 0.4965 GB, free: 24.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.4839, allocations: 12 kB / 0.4965 GB, free: 24.76 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/0.4839, allocations: 7.969 kB / 0.4965 GB, free: 24.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008483/0.4924, allocations: 6.561 MB / 0.5029 GB, free: 18.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.4924, allocations: 4 kB / 0.5029 GB, free: 18.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007502/0.4932, allocations: 179.6 kB / 0.5031 GB, free: 17.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001896/0.4951, allocations: 0.9154 MB / 0.504 GB, free: 16.97 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.84e-05/0.4952, allocations: 39.98 kB / 0.504 GB, free: 16.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01238/0.5076, allocations: 16.17 MB / 0.5198 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.5076, allocations: 0 / 0.5198 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007185/0.5148, allocations: 4.509 MB / 0.5242 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001365/0.5162, allocations: 0.5138 MB / 0.5247 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005859/0.5168, allocations: 40 kB / 0.5248 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.5179, allocations: 75.94 kB / 0.5248 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005727/0.5185, allocations: 165 kB / 0.525 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001155/0.5187, allocations: 51.92 kB / 0.525 GB, free: 10.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002456/0.5211, allocations: 1.481 MB / 0.5265 GB, free: 9.004 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5211, allocations: 0 / 0.5265 GB, free: 9.004 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002562/0.5237, allocations: 0.7097 MB / 0.5272 GB, free: 8.297 MB / 398.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.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,8,100.0%), (9,19,33.3%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003842/0.5241, allocations: 174.8 kB / 0.5273 GB, free: 8.117 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004922/0.529, allocations: 3.129 MB / 0.5304 GB, free: 4.918 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.529, allocations: 0 / 0.5304 GB, free: 4.918 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003313/0.5324, allocations: 2.272 MB / 0.5326 GB, free: 2.574 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002425/0.5348, allocations: 0.6293 MB / 0.5332 GB, free: 1.941 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01073/0.5455, allocations: 6.812 MB / 0.5399 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002317/0.5479, allocations: 2.674 MB / 0.5425 GB, free: 8.395 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001307/0.5492, allocations: 479.4 kB / 0.543 GB, free: 7.922 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000353/0.5495, allocations: 139.4 kB / 0.5431 GB, free: 7.785 MB / 414.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5496, allocations: 4 kB / 0.5431 GB, free: 7.781 MB / 414.1 MB Notification: Performance of Templates: time 0.06392/0.6135, allocations: 36.93 MB / 0.5792 GB, free: 2.844 MB / 446.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)