Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.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_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 115.1 kB / 17.07 MB, free: 5.969 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.001235/0.001235, allocations: 198.9 kB / 18.01 MB, free: 5.055 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.372/1.372, allocations: 205.1 MB / 223.9 MB, free: 12.22 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.001148/0.001148, allocations: 51.92 kB / 327.9 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08696/0.08813, allocations: 46.61 MB / 374.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL): time 0.1956/0.2838, allocations: 19.48 MB / 394 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01385/0.2977, allocations: 5.69 MB / 399.7 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004246/0.302, allocations: 105.8 kB / 399.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004205/0.3062, allocations: 1.295 MB / 401.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0069/0.3132, allocations: 1.889 MB / 403 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003397/0.3166, allocations: 1.186 MB / 404.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008715/0.3253, allocations: 6.428 MB / 410.6 MB, free: 7.121 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006769/0.3321, allocations: 5.33 MB / 415.9 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005357/0.3375, allocations: 2.977 MB / 418.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007523/0.345, allocations: 3.469 MB / 422.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003847/0.3489, allocations: 0.8008 MB / 423.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004797/0.3538, allocations: 1.078 MB / 424.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003131/0.3569, allocations: 1.983 MB / 426.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006036/0.363, allocations: 3.435 MB / 429.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01325/0.3763, allocations: 10.61 MB / 440.3 MB, free: 13.66 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.05e-05/0.3763, allocations: 0 / 440.3 MB, free: 13.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3763, allocations: 3.938 kB / 440.3 MB, free: 13.65 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003287/0.3767, allocations: 0 / 440.3 MB, free: 13.65 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.01613/0.3928, allocations: 6.687 MB / 446.9 MB, free: 6.883 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.3929, allocations: 12.02 kB / 447 MB, free: 6.871 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00472/0.3976, allocations: 1.075 MB / 448 MB, free: 5.789 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007257/0.4049, allocations: 3.471 MB / 451.5 MB, free: 2.242 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003608/0.4053, allocations: 386.7 kB / 451.9 MB, free: 1.863 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001325/0.4066, allocations: 0.512 MB / 452.4 MB, free: 1.352 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01521/0.4218, allocations: 6.945 MB / 459.3 MB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000146/0.422, allocations: 15.84 kB / 459.3 MB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006248/0.4227, allocations: 208 kB / 459.6 MB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002628/0.4229, allocations: 242.2 kB / 459.8 MB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01218/0.4351, allocations: 5.919 MB / 465.7 MB, free: 3.941 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03644/0.4716, allocations: 21.09 MB / 486.8 MB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009397/0.481, allocations: 8.706 MB / 495.5 MB, free: 4.719 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004443/0.4855, allocations: 2.365 MB / 497.9 MB, free: 2.352 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01248/0.4981, allocations: 6.116 MB / 0.4922 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.062e-05/0.4981, allocations: 60.48 kB / 0.4922 GB, free: 12.05 MB / 430.1 MB Notification: Performance of pre-optimization done (n=219): time 4.007e-06/0.4982, allocations: 3.938 kB / 0.4922 GB, free: 12.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=238): time 0.02356/0.5217, allocations: 11.29 MB / 0.5033 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.09e-05/0.5219, allocations: 81.41 kB / 0.5033 GB, free: 456 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004398/0.5263, allocations: 2.986 MB / 0.5063 GB, free: 13.45 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002597/0.5265, allocations: 73.64 kB / 0.5063 GB, free: 13.37 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001575/0.5281, allocations: 2.304 MB / 0.5086 GB, free: 11.04 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006803/0.5288, allocations: 0.8087 MB / 0.5094 GB, free: 10.22 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008144/0.5296, allocations: 0.5058 MB / 0.5099 GB, free: 9.703 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.296e-05/0.5297, allocations: 305.1 kB / 0.5102 GB, free: 9.402 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002061/0.5318, allocations: 1.36 MB / 0.5115 GB, free: 8.039 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002551/0.5344, allocations: 2.131 MB / 0.5136 GB, free: 5.574 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004796/0.5392, allocations: 3.689 MB / 0.5172 GB, free: 1.527 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.501e-05/0.5392, allocations: 8 kB / 0.5172 GB, free: 1.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=367) (initialization): time 0.007703/0.5469, allocations: 4.663 MB / 0.5217 GB, free: 12.75 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.535e-05/0.547, allocations: 19.94 kB / 0.5217 GB, free: 12.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.094e-05/0.5471, allocations: 20 kB / 0.5218 GB, free: 12.71 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001881/0.5489, allocations: 0.7624 MB / 0.5225 GB, free: 11.92 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002628/0.5516, allocations: 0.6318 MB / 0.5231 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01309/0.5647, allocations: 14.53 MB / 0.5373 GB, free: 11.78 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002506/0.5672, allocations: 155.8 kB / 0.5375 GB, free: 11.62 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003937/0.5677, allocations: 124 kB / 0.5376 GB, free: 11.5 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * Number of states: 0 () * Number of discrete variables: 3 (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 (324): * Single equations (assignments): 314 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (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): 7 systems {(1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (1,13,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003446/0.5711, allocations: 1.594 MB / 0.5391 GB, free: 9.898 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001002/0.5721, allocations: 324.1 kB / 0.5394 GB, free: 9.578 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007469/0.5796, allocations: 4.195 MB / 0.5435 GB, free: 5.297 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.709e-05/0.5797, allocations: 23.98 kB / 0.5436 GB, free: 5.273 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-05/0.5797, allocations: 12 kB / 0.5436 GB, free: 5.262 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.478e-05/0.5797, allocations: 11.95 kB / 0.5436 GB, free: 5.25 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2082/0.7879, allocations: 9.116 MB / 0.5525 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.398e-05/0.788, allocations: 3.25 kB / 0.5525 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001617/0.7896, allocations: 378.5 kB / 0.5529 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002463/0.7921, allocations: 0.928 MB / 0.5538 GB, free: 145.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002314/0.7923, allocations: 63.59 kB / 0.5538 GB, free: 145.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01439/0.8067, allocations: 17.99 MB / 0.5714 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.8068, allocations: 9.219 kB / 0.5714 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009196/0.816, allocations: 6.048 MB / 0.5773 GB, free: 128.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001866/0.8179, allocations: 0.696 MB / 0.578 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004748/0.8183, allocations: 61.28 kB / 0.578 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001531/0.8199, allocations: 127.2 kB / 0.5782 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005111/0.8204, allocations: 203.2 kB / 0.5784 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001562/0.8206, allocations: 71.72 kB / 0.5784 GB, free: 128 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002753/0.8233, allocations: 2.035 MB / 0.5804 GB, free: 127.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.8233, allocations: 2.906 kB / 0.5804 GB, free: 127.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003206/0.8266, allocations: 0.9791 MB / 0.5814 GB, free: 127.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.zeroInductor.i0,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 8 * 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): 8 systems {(2,12,100.0%), (1,1,100.0%), (1,8,100.0%), (2,1,100.0%), (1,1,100.0%), (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.0005624/0.8271, allocations: 249.4 kB / 0.5816 GB, free: 127 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005988/0.8331, allocations: 4.598 MB / 0.5861 GB, free: 124.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/0.8332, allocations: 0 / 0.5861 GB, free: 124.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003642/0.8368, allocations: 3.048 MB / 0.5891 GB, free: 122.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003884/0.8407, allocations: 0.8987 MB / 0.59 GB, free: 122.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01477/0.8555, allocations: 9.897 MB / 0.5996 GB, free: 116.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00269/0.8582, allocations: 3.432 MB / 0.603 GB, free: 114 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002152/0.8604, allocations: 0.7741 MB / 0.6037 GB, free: 113.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005627/0.861, allocations: 209.5 kB / 0.6039 GB, free: 113.2 MB / 478.1 MB Notification: Performance of SimCode: time 9.11e-07/0.861, allocations: 0 / 0.6039 GB, free: 113.2 MB / 478.1 MB Notification: Performance of Templates: time 0.07988/0.9409, allocations: 50 MB / 0.6528 GB, free: 63.45 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe 2>&1)