Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.006642/0.006642, allocations: 101.7 kB / 15.73 MB, free: 5.59 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.00125/0.00125, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.471/1.471, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001243/0.001243, allocations: 48.22 kB / 326.6 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08464/0.08589, allocations: 46.62 MB / 373.2 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.194/0.28, allocations: 12.82 MB / 386 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008372/0.2884, allocations: 4.294 MB / 390.3 MB, free: 3.207 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001871/0.2903, allocations: 65.75 kB / 390.3 MB, free: 3.191 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002784/0.2931, allocations: 1.007 MB / 391.4 MB, free: 2.652 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003901/0.297, allocations: 1.329 MB / 392.7 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001941/0.299, allocations: 0.856 MB / 393.5 MB, free: 1.227 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0049/0.3039, allocations: 4.04 MB / 397.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004158/0.308, allocations: 3.197 MB / 400.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003416/0.3115, allocations: 1.883 MB / 402.7 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003837/0.3153, allocations: 2.123 MB / 404.8 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001216/0.3166, allocations: 0.5087 MB / 405.3 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002334/0.3189, allocations: 0.709 MB / 406 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001111/0.32, allocations: 1.141 MB / 407.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003231/0.3233, allocations: 2.128 MB / 409.3 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007187/0.3305, allocations: 6.736 MB / 416 MB, free: 4.449 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.3305, allocations: 4 kB / 416 MB, free: 4.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.3305, allocations: 0 / 416 MB, free: 4.445 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001521/0.3307, allocations: 0 / 416 MB, free: 4.445 MB / 334.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.01172/0.3424, allocations: 4.392 MB / 420.4 MB, free: 304 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.3425, allocations: 12.03 kB / 420.4 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004344/0.3468, allocations: 0.8163 MB / 421.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004364/0.3512, allocations: 2.315 MB / 423.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001656/0.3514, allocations: 234.6 kB / 423.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005423/0.3519, allocations: 320.2 kB / 424.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008049/0.36, allocations: 4.254 MB / 428.3 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.507e-05/0.3601, allocations: 7.906 kB / 428.3 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004029/0.3605, allocations: 127.9 kB / 428.5 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001565/0.3607, allocations: 146.2 kB / 428.6 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008014/0.3687, allocations: 3.659 MB / 432.3 MB, free: 4.301 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02538/0.3941, allocations: 13.33 MB / 445.6 MB, free: 6.613 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007776/0.402, allocations: 6.866 MB / 452.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002456/0.4045, allocations: 1.41 MB / 453.9 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006949/0.4114, allocations: 3.627 MB / 457.5 MB, free: 9.719 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.213e-05/0.4115, allocations: 51.53 kB / 457.6 MB, free: 9.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 3.106e-06/0.4115, allocations: 3.938 kB / 457.6 MB, free: 9.656 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01489/0.4264, allocations: 6.637 MB / 464.2 MB, free: 2.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.858e-05/0.4265, allocations: 72.7 kB / 464.3 MB, free: 2.734 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00352/0.43, allocations: 1.859 MB / 466.1 MB, free: 0.875 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001224/0.4302, allocations: 45.7 kB / 466.2 MB, free: 0.8242 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001144/0.4313, allocations: 1.42 MB / 467.6 MB, free: 15.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005088/0.4318, allocations: 496.8 kB / 468.1 MB, free: 14.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005557/0.4324, allocations: 311.3 kB / 468.4 MB, free: 14.58 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.4326, allocations: 301.1 kB / 468.7 MB, free: 14.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001328/0.4339, allocations: 0.7613 MB / 469.4 MB, free: 13.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001647/0.4356, allocations: 1.224 MB / 470.7 MB, free: 12.11 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003024/0.4386, allocations: 2.104 MB / 472.8 MB, free: 9.812 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.344e-05/0.4387, allocations: 8 kB / 472.8 MB, free: 9.805 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004888/0.4436, allocations: 2.663 MB / 475.4 MB, free: 7.125 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.106e-05/0.4436, allocations: 15.94 kB / 475.5 MB, free: 7.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.574e-05/0.4436, allocations: 12.28 kB / 475.5 MB, free: 7.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001405/0.4451, allocations: 0.4971 MB / 476 MB, free: 6.594 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001474/0.4465, allocations: 383.4 kB / 476.3 MB, free: 6.219 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009215/0.4558, allocations: 6.924 MB / 483.3 MB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/0.4574, allocations: 71.95 kB / 483.3 MB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002072/0.4576, allocations: 75.92 kB / 483.4 MB, free: 14.86 MB / 414.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.001952/0.4596, allocations: 1.048 MB / 484.5 MB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004971/0.4601, allocations: 193.6 kB / 484.6 MB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004549/0.4647, allocations: 2.5 MB / 487.1 MB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/0.4647, allocations: 12 kB / 487.2 MB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.597e-05/0.4647, allocations: 11.94 kB / 487.2 MB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.376e-05/0.4647, allocations: 7.969 kB / 487.2 MB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009296/0.474, allocations: 5.533 MB / 492.7 MB, free: 5.344 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.4741, allocations: 0 / 492.7 MB, free: 5.344 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009942/0.4751, allocations: 215.7 kB / 492.9 MB, free: 5.133 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001294/0.4764, allocations: 0.5078 MB / 493.4 MB, free: 4.609 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/0.4765, allocations: 35.98 kB / 493.5 MB, free: 4.574 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01132/0.4878, allocations: 11.41 MB / 0.493 GB, free: 8.473 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.4879, allocations: 4.312 kB / 0.493 GB, free: 8.469 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005957/0.4938, allocations: 3.558 MB / 0.4965 GB, free: 4.82 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001172/0.495, allocations: 454.6 kB / 0.4969 GB, free: 4.355 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000516/0.4955, allocations: 36 kB / 0.497 GB, free: 4.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001154/0.4967, allocations: 67.88 kB / 0.497 GB, free: 4.254 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003001/0.497, allocations: 117 kB / 0.4972 GB, free: 4.141 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.943e-05/0.4971, allocations: 43.98 kB / 0.4972 GB, free: 4.098 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002412/0.4996, allocations: 1.282 MB / 0.4985 GB, free: 2.824 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4996, allocations: 0 / 0.4985 GB, free: 2.824 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002343/0.5019, allocations: 0.59 MB / 0.499 GB, free: 2.234 MB / 430.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.0003605/0.5023, allocations: 163 kB / 0.4992 GB, free: 2.066 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004345/0.5066, allocations: 2.402 MB / 0.5015 GB, free: 15.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.5067, allocations: 1.875 kB / 0.5015 GB, free: 15.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002553/0.5092, allocations: 1.719 MB / 0.5032 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002593/0.5118, allocations: 0.5213 MB / 0.5037 GB, free: 13.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01057/0.5224, allocations: 5.922 MB / 0.5095 GB, free: 7.363 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002542/0.525, allocations: 2.37 MB / 0.5118 GB, free: 4.961 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001471/0.5265, allocations: 416.8 kB / 0.5122 GB, free: 4.551 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004511/0.5269, allocations: 123.4 kB / 0.5123 GB, free: 4.43 MB / 446.1 MB Notification: Performance of SimCode: time 8.11e-07/0.527, allocations: 0 / 0.5123 GB, free: 4.43 MB / 446.1 MB Notification: Performance of Templates: time 0.05437/0.5813, allocations: 31.54 MB / 0.5431 GB, free: 4.828 MB / 478.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1)