Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.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_Conveyor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=400000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=400000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005255/0.005255, allocations: 99.8 kB / 15.73 MB, free: 6.496 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.001125/0.001125, allocations: 199 kB / 16.68 MB, free: 6.375 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.444/1.444, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.001239/0.001239, allocations: 49.58 kB / 326.6 MB, free: 14.54 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09378/0.09503, allocations: 46.62 MB / 373.2 MB, free: 1.414 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.01461/0.1097, allocations: 13.38 MB / 386.6 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008716/0.1184, allocations: 4.74 MB / 391.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001884/0.1204, allocations: 71.69 kB / 391.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002681/0.1231, allocations: 1.091 MB / 392.5 MB, free: 14.04 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.003673/0.1268, allocations: 1.375 MB / 393.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002254/0.129, allocations: 0.9675 MB / 394.8 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004941/0.134, allocations: 4.07 MB / 398.9 MB, free: 7.605 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003691/0.1377, allocations: 3.201 MB / 402.1 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002995/0.1407, allocations: 1.904 MB / 404 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002792/0.1435, allocations: 2.16 MB / 406.1 MB, free: 260 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008099/0.1444, allocations: 0.5079 MB / 406.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001562/0.1459, allocations: 0.7497 MB / 407.4 MB, free: 15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009517/0.1469, allocations: 1.145 MB / 408.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002151/0.149, allocations: 2.143 MB / 410.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006209/0.1553, allocations: 6.781 MB / 417.5 MB, free: 4.895 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1553, allocations: 0 / 417.5 MB, free: 4.895 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1553, allocations: 0 / 417.5 MB, free: 4.895 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001045/0.1554, allocations: 0 / 417.5 MB, free: 4.895 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: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.01097/0.1664, allocations: 4.495 MB / 422 MB, free: 332 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.1664, allocations: 12.03 kB / 422 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004365/0.1708, allocations: 0.8162 MB / 422.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004541/0.1754, allocations: 2.334 MB / 425.1 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000198/0.1756, allocations: 234.4 kB / 425.4 MB, free: 12.87 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000682/0.1763, allocations: 319.9 kB / 425.7 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007131/0.1834, allocations: 4.284 MB / 430 MB, free: 8.227 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.131e-05/0.1835, allocations: 4 kB / 430 MB, free: 8.223 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003108/0.1839, allocations: 128 kB / 430.1 MB, free: 8.098 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001505/0.184, allocations: 162.4 kB / 430.2 MB, free: 7.938 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005989/0.19, allocations: 3.621 MB / 433.9 MB, free: 4.309 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02114/0.2112, allocations: 13.25 MB / 447.1 MB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.195/0.4062, allocations: 6.96 MB / 454.1 MB, free: 66.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003377/0.4096, allocations: 1.361 MB / 455.4 MB, free: 66.53 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007787/0.4175, allocations: 3.813 MB / 459.2 MB, free: 64.71 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001412/0.4189, allocations: 0.854 MB / 460.1 MB, free: 64.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.627e-06/0.4189, allocations: 0 / 460.1 MB, free: 64.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.01297/0.4319, allocations: 6.494 MB / 466.6 MB, free: 61.03 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.4321, allocations: 226.7 kB / 466.8 MB, free: 60.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003056/0.4351, allocations: 1.912 MB / 468.7 MB, free: 60.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001657/0.4353, allocations: 56.55 kB / 468.8 MB, free: 60 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001535/0.4369, allocations: 1.474 MB / 470.3 MB, free: 58.88 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004661/0.4373, allocations: 483.9 kB / 470.7 MB, free: 58.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000565/0.4379, allocations: 307.2 kB / 471 MB, free: 58.37 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.171e-05/0.438, allocations: 306.5 kB / 471.3 MB, free: 58.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001176/0.4392, allocations: 0.6615 MB / 472 MB, free: 57.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001493/0.4407, allocations: 1.215 MB / 473.2 MB, free: 56.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002148/0.4428, allocations: 1.939 MB / 475.1 MB, free: 55.63 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.205e-05/0.4429, allocations: 3.938 kB / 475.1 MB, free: 55.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.003788/0.4467, allocations: 2.427 MB / 477.6 MB, free: 54.51 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.294e-05/0.4467, allocations: 11.88 kB / 477.6 MB, free: 54.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.706e-05/0.4468, allocations: 15.81 kB / 477.6 MB, free: 54.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007287/0.4475, allocations: 285.2 kB / 477.9 MB, free: 54.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.4488, allocations: 384.5 kB / 478.3 MB, free: 54.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004516/0.4533, allocations: 6.374 MB / 484.6 MB, free: 48.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001614/0.4549, allocations: 97.3 kB / 484.7 MB, free: 48.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/0.4551, allocations: 74.2 kB / 484.8 MB, free: 48.71 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.dutyCycle.nextTimeEvent,$whenCondition1,dutyCycle.nextTimeEventScaled,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 192 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(1,4,100.0%), (1,5,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001926/0.457, allocations: 1.035 MB / 485.8 MB, free: 48.01 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003786/0.4574, allocations: 208.3 kB / 486 MB, free: 47.9 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003258/0.4606, allocations: 2.243 MB / 488.3 MB, free: 46.49 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.17e-05/0.4607, allocations: 22.95 kB / 488.3 MB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/0.4607, allocations: 8.375 kB / 488.3 MB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.4607, allocations: 3.984 kB / 488.3 MB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006739/0.4675, allocations: 5.087 MB / 493.4 MB, free: 41.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-06/0.4675, allocations: 4.031 kB / 493.4 MB, free: 41.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007025/0.4682, allocations: 183.7 kB / 493.6 MB, free: 41.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001016/0.4692, allocations: 464.3 kB / 494 MB, free: 41.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.284e-05/0.4693, allocations: 36.73 kB / 494.1 MB, free: 41.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007431/0.4768, allocations: 11.13 MB / 0.4934 GB, free: 29.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.4768, allocations: 0 / 0.4934 GB, free: 29.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004387/0.4812, allocations: 3.136 MB / 0.4964 GB, free: 26.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001115/0.4823, allocations: 431.4 kB / 0.4968 GB, free: 25.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002427/0.4826, allocations: 36 kB / 0.4969 GB, free: 25.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008539/0.4835, allocations: 59.95 kB / 0.4969 GB, free: 25.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000263/0.4837, allocations: 109.1 kB / 0.497 GB, free: 25.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.25e-05/0.4838, allocations: 39.98 kB / 0.4971 GB, free: 25.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001564/0.4854, allocations: 1.319 MB / 0.4984 GB, free: 24.03 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4854, allocations: 3.844 kB / 0.4984 GB, free: 24.03 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002201/0.4876, allocations: 0.5833 MB / 0.4989 GB, free: 23.45 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,5,100.0%), (1,13,100.0%), (1,3,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.001166/0.4888, allocations: 474.7 kB / 0.4994 GB, free: 23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002973/0.4918, allocations: 2.171 MB / 0.5015 GB, free: 20.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.4918, allocations: 0 / 0.5015 GB, free: 20.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001826/0.4936, allocations: 1.582 MB / 0.503 GB, free: 19.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002312/0.4959, allocations: 0.5405 MB / 0.5036 GB, free: 18.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00912/0.5051, allocations: 5.783 MB / 0.5092 GB, free: 12.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001594/0.5067, allocations: 2.354 MB / 0.5115 GB, free: 10.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001433/0.5082, allocations: 409 kB / 0.5119 GB, free: 10.01 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003161/0.5085, allocations: 139.4 kB / 0.512 GB, free: 9.875 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5085, allocations: 0 / 0.512 GB, free: 9.875 MB / 382.1 MB Notification: Performance of Templates: time 0.04965/0.5582, allocations: 30.52 MB / 0.5418 GB, free: 11.32 MB / 414.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe 2>&1)