Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.008328/0.008328, allocations: 102.9 kB / 15.74 MB, free: 6.449 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.002113/0.002114, allocations: 199.1 kB / 16.68 MB, free: 6.352 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.429/1.429, allocations: 205.1 MB / 222.5 MB, free: 4.492 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.001282/0.001282, allocations: 49.94 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09644/0.09774, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01595/0.1137, allocations: 13.69 MB / 386.9 MB, free: 3.559 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008931/0.1227, allocations: 4.505 MB / 391.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002448/0.1252, allocations: 71.69 kB / 391.4 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003384/0.1286, allocations: 1.033 MB / 392.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004832/0.1335, allocations: 1.39 MB / 393.9 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00251/0.136, allocations: 0.9042 MB / 394.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006164/0.1422, allocations: 4.748 MB / 399.5 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006054/0.1483, allocations: 3.636 MB / 403.2 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00343/0.1517, allocations: 2.189 MB / 405.3 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004437/0.1562, allocations: 2.46 MB / 407.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001733/0.1579, allocations: 0.5898 MB / 408.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002921/0.1609, allocations: 0.7926 MB / 409.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002234/0.1631, allocations: 1.328 MB / 410.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004828/0.168, allocations: 2.474 MB / 413 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01048/0.1785, allocations: 7.798 MB / 420.8 MB, free: 1.469 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1785, allocations: 0 / 420.8 MB, free: 1.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1785, allocations: 0 / 420.8 MB, free: 1.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002497/0.1788, allocations: 0 / 420.8 MB, free: 1.469 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.01591/0.1947, allocations: 5.147 MB / 425.9 MB, free: 12.24 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.1948, allocations: 8.031 kB / 425.9 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004772/0.1995, allocations: 0.8921 MB / 426.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004887/0.2044, allocations: 2.672 MB / 429.5 MB, free: 8.613 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001941/0.2047, allocations: 273.1 kB / 429.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000565/0.2052, allocations: 360 kB / 430.1 MB, free: 7.996 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009096/0.2143, allocations: 5.036 MB / 435.2 MB, free: 2.906 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.991e-05/0.2144, allocations: 0 / 435.2 MB, free: 2.906 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003463/0.2148, allocations: 152 kB / 435.3 MB, free: 2.758 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001423/0.215, allocations: 167.1 kB / 435.5 MB, free: 2.594 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007676/0.2226, allocations: 4.369 MB / 439.8 MB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2465/0.4692, allocations: 15.74 MB / 455.6 MB, free: 62.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007796/0.477, allocations: 7.783 MB / 463.4 MB, free: 56.65 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003053/0.4801, allocations: 1.712 MB / 465.1 MB, free: 56.63 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008764/0.4889, allocations: 4.65 MB / 469.7 MB, free: 54.74 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.124e-05/0.489, allocations: 53.62 kB / 469.8 MB, free: 54.69 MB / 382.1 MB Notification: Performance of pre-optimization done (n=161): time 3.907e-06/0.489, allocations: 1.859 kB / 469.8 MB, free: 54.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=164): time 0.0171/0.5061, allocations: 8.18 MB / 478 MB, free: 51.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.157e-05/0.5062, allocations: 68.5 kB / 478 MB, free: 51.01 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002792/0.509, allocations: 2.163 MB / 480.2 MB, free: 49.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001073/0.5091, allocations: 53.64 kB / 480.2 MB, free: 49.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009837/0.5101, allocations: 1.663 MB / 481.9 MB, free: 48.64 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005151/0.5106, allocations: 0.5792 MB / 482.5 MB, free: 48.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005648/0.5112, allocations: 351.7 kB / 482.8 MB, free: 48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.25e-05/0.5112, allocations: 316.6 kB / 483.1 MB, free: 47.69 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/0.5126, allocations: 0.9443 MB / 484.1 MB, free: 47.19 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001439/0.514, allocations: 1.454 MB / 485.5 MB, free: 46.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002755/0.5168, allocations: 2.499 MB / 488 MB, free: 44.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.5168, allocations: 7.906 kB / 488 MB, free: 44.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.004735/0.5215, allocations: 3.36 MB / 491.4 MB, free: 42.42 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.693e-05/0.5216, allocations: 14.72 kB / 491.4 MB, free: 42.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.48e-05/0.5216, allocations: 19.14 kB / 491.4 MB, free: 42.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00155/0.5232, allocations: 0.7387 MB / 492.2 MB, free: 41.99 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.5244, allocations: 367.4 kB / 492.5 MB, free: 41.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008991/0.5334, allocations: 11.36 MB / 0.4921 GB, free: 29.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00205/0.5355, allocations: 87.91 kB / 0.4922 GB, free: 29.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001438/0.5357, allocations: 79.98 kB / 0.4922 GB, free: 29.58 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.002039/0.5377, allocations: 1.217 MB / 0.4934 GB, free: 28.35 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004598/0.5382, allocations: 238.5 kB / 0.4937 GB, free: 28.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004634/0.5428, allocations: 3.16 MB / 0.4967 GB, free: 24.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.5428, allocations: 16 kB / 0.4968 GB, free: 24.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-05/0.5429, allocations: 11.98 kB / 0.4968 GB, free: 24.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.424e-05/0.5429, allocations: 11.97 kB / 0.4968 GB, free: 24.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009611/0.5525, allocations: 6.566 MB / 0.5032 GB, free: 18.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.5526, allocations: 2.625 kB / 0.5032 GB, free: 18.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007548/0.5533, allocations: 176 kB / 0.5034 GB, free: 18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002146/0.5555, allocations: 0.9068 MB / 0.5043 GB, free: 17.08 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001274/0.5556, allocations: 43.98 kB / 0.5043 GB, free: 17.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01329/0.5689, allocations: 16.18 MB / 0.5201 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.569, allocations: 12.03 kB / 0.5201 GB, free: 36 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007822/0.5768, allocations: 4.51 MB / 0.5245 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001441/0.5783, allocations: 0.5307 MB / 0.525 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006808/0.579, allocations: 39.94 kB / 0.5251 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001448/0.5804, allocations: 75.94 kB / 0.5251 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000488/0.581, allocations: 165 kB / 0.5253 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000135/0.5811, allocations: 43.98 kB / 0.5253 GB, free: 10.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003063/0.5842, allocations: 1.485 MB / 0.5268 GB, free: 9.062 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5842, allocations: 0 / 0.5268 GB, free: 9.062 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00342/0.5876, allocations: 0.707 MB / 0.5275 GB, free: 8.355 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.0004806/0.5881, allocations: 175.3 kB / 0.5276 GB, free: 8.176 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005148/0.5933, allocations: 3.135 MB / 0.5307 GB, free: 4.969 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.5933, allocations: 8.188 kB / 0.5307 GB, free: 4.961 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00354/0.5968, allocations: 2.268 MB / 0.5329 GB, free: 2.617 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003811/0.6007, allocations: 0.6448 MB / 0.5336 GB, free: 1.969 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01443/0.6151, allocations: 6.91 MB / 0.5403 GB, free: 11.01 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003826/0.619, allocations: 2.67 MB / 0.5429 GB, free: 8.305 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002031/0.621, allocations: 483.4 kB / 0.5434 GB, free: 7.828 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006218/0.6217, allocations: 143.4 kB / 0.5435 GB, free: 7.688 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.6217, allocations: 0 / 0.5435 GB, free: 7.688 MB / 414.1 MB Notification: Performance of Templates: time 0.0687/0.6904, allocations: 36.93 MB / 0.5796 GB, free: 2.75 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)