Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001362/0.001362, allocations: 108.3 kB / 17.06 MB, free: 5.824 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.001483/0.001483, allocations: 191 kB / 18 MB, free: 4.977 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.346/1.346, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.0013/0.0013, allocations: 51.94 kB / 327.9 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08989/0.0912, allocations: 46.62 MB / 374.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.2135/0.3047, allocations: 13.67 MB / 388.2 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009302/0.3141, allocations: 4.512 MB / 392.7 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002845/0.3171, allocations: 73.53 kB / 392.8 MB, free: 2.414 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003522/0.3206, allocations: 1.085 MB / 393.8 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005593/0.3262, allocations: 1.422 MB / 395.3 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002574/0.3288, allocations: 0.9106 MB / 396.2 MB, free: 316 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007282/0.3361, allocations: 4.755 MB / 400.9 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005124/0.3413, allocations: 3.64 MB / 404.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005463/0.3468, allocations: 2.204 MB / 406.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006642/0.3535, allocations: 2.46 MB / 409.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003088/0.3566, allocations: 0.5887 MB / 409.8 MB, free: 9.984 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004203/0.3608, allocations: 0.7936 MB / 410.6 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002681/0.3635, allocations: 1.342 MB / 412 MB, free: 8.812 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005019/0.3686, allocations: 2.469 MB / 414.4 MB, free: 7.016 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009066/0.3777, allocations: 7.766 MB / 422.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.3777, allocations: 3.938 kB / 422.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3777, allocations: 0 / 422.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000168/0.3779, allocations: 0 / 422.2 MB, free: 15.91 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.01305/0.3909, allocations: 5.033 MB / 427.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.391, allocations: 8.031 kB / 427.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004432/0.3954, allocations: 0.8742 MB / 428.1 MB, free: 9.918 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004938/0.4004, allocations: 2.651 MB / 430.8 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002148/0.4006, allocations: 275.6 kB / 431 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007028/0.4013, allocations: 359.8 kB / 431.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008905/0.4103, allocations: 5.029 MB / 436.4 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-05/0.4104, allocations: 11.83 kB / 436.4 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003436/0.4107, allocations: 156 kB / 436.6 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001476/0.4109, allocations: 167.1 kB / 436.7 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007796/0.4187, allocations: 4.373 MB / 441.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02558/0.4443, allocations: 15.71 MB / 456.8 MB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007289/0.4516, allocations: 7.78 MB / 464.6 MB, free: 4.039 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002475/0.4542, allocations: 1.718 MB / 466.3 MB, free: 2.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007853/0.462, allocations: 4.643 MB / 471 MB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/0.4621, allocations: 51.88 kB / 471 MB, free: 13.53 MB / 398.1 MB Notification: Performance of pre-optimization done (n=161): time 3.156e-06/0.4621, allocations: 0 / 471 MB, free: 13.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=164): time 0.01819/0.4803, allocations: 8.127 MB / 479.1 MB, free: 5.172 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/0.4804, allocations: 68.72 kB / 479.2 MB, free: 5.094 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00471/0.4851, allocations: 2.159 MB / 481.4 MB, free: 2.898 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002386/0.4854, allocations: 57.7 kB / 481.4 MB, free: 2.836 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00144/0.4868, allocations: 1.612 MB / 483 MB, free: 1.203 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007241/0.4876, allocations: 0.5468 MB / 483.6 MB, free: 0.6484 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000802/0.4884, allocations: 359.2 kB / 483.9 MB, free: 296 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.4886, allocations: 305.1 kB / 484.2 MB, free: 15.99 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001738/0.4903, allocations: 0.9408 MB / 485.2 MB, free: 15.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002143/0.4925, allocations: 1.461 MB / 486.6 MB, free: 13.38 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003949/0.4964, allocations: 2.507 MB / 489.1 MB, free: 10.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.351e-05/0.4965, allocations: 4 kB / 489.1 MB, free: 10.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.006883/0.5034, allocations: 3.351 MB / 492.5 MB, free: 7.262 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.302e-05/0.5034, allocations: 12 kB / 492.5 MB, free: 7.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.494e-05/0.5035, allocations: 16 kB / 492.5 MB, free: 7.234 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002041/0.5055, allocations: 0.7358 MB / 493.2 MB, free: 6.484 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001566/0.5071, allocations: 375.4 kB / 493.6 MB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0135/0.5206, allocations: 11.35 MB / 0.4931 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002156/0.5228, allocations: 91.8 kB / 0.4932 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003987/0.5232, allocations: 79.98 kB / 0.4933 GB, free: 10.04 MB / 430.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.00292/0.5262, allocations: 1.223 MB / 0.4945 GB, free: 8.805 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006736/0.5268, allocations: 221.3 kB / 0.4947 GB, free: 8.586 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006193/0.533, allocations: 3.16 MB / 0.4978 GB, free: 5.363 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.772e-05/0.5331, allocations: 19.94 kB / 0.4978 GB, free: 5.344 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.104e-05/0.5331, allocations: 15.98 kB / 0.4978 GB, free: 5.328 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.647e-05/0.5332, allocations: 4.359 kB / 0.4978 GB, free: 5.324 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0136/0.5468, allocations: 6.568 MB / 0.5042 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.958e-06/0.5468, allocations: 4 kB / 0.5042 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008708/0.5477, allocations: 180 kB / 0.5044 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002398/0.5501, allocations: 0.9027 MB / 0.5053 GB, free: 13.51 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001474/0.5503, allocations: 39.98 kB / 0.5053 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01793/0.5682, allocations: 16.17 MB / 0.5211 GB, free: 12.46 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.5683, allocations: 0 / 0.5211 GB, free: 12.46 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007946/0.5762, allocations: 4.513 MB / 0.5255 GB, free: 7.852 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001376/0.5776, allocations: 0.5139 MB / 0.526 GB, free: 7.316 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006051/0.5783, allocations: 39.98 kB / 0.5261 GB, free: 7.277 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001357/0.5796, allocations: 79.88 kB / 0.5261 GB, free: 7.199 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004831/0.5801, allocations: 153.1 kB / 0.5263 GB, free: 7.051 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001285/0.5803, allocations: 47.92 kB / 0.5263 GB, free: 7.004 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002894/0.5832, allocations: 1.481 MB / 0.5278 GB, free: 5.504 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5832, allocations: 4 kB / 0.5278 GB, free: 5.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003324/0.5865, allocations: 0.707 MB / 0.5285 GB, free: 4.793 MB / 462.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.0004206/0.5869, allocations: 171 kB / 0.5286 GB, free: 4.617 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005509/0.5925, allocations: 3.126 MB / 0.5317 GB, free: 1.418 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.5925, allocations: 0 / 0.5317 GB, free: 1.418 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003595/0.5961, allocations: 2.259 MB / 0.5339 GB, free: 15.08 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003616/0.5997, allocations: 0.6413 MB / 0.5345 GB, free: 14.43 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01475/0.6145, allocations: 6.806 MB / 0.5412 GB, free: 7.578 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003963/0.6185, allocations: 2.678 MB / 0.5438 GB, free: 4.871 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001749/0.6203, allocations: 479.4 kB / 0.5442 GB, free: 4.398 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005103/0.6208, allocations: 139.4 kB / 0.5444 GB, free: 4.262 MB / 478.1 MB Notification: Performance of SimCode: time 1.172e-06/0.6208, allocations: 4 kB / 0.5444 GB, free: 4.258 MB / 478.1 MB Notification: Performance of Templates: time 0.2642/0.885, allocations: 36.92 MB / 0.5804 GB, free: 136.5 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)