Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.00114/0.00114, allocations: 107.3 kB / 17.06 MB, free: 5.828 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.001123/0.001124, allocations: 195.9 kB / 18 MB, free: 4.969 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.435/1.435, 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.92 kB / 327.9 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08982/0.09113, allocations: 46.62 MB / 374.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.2119/0.3031, allocations: 13.37 MB / 387.9 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01125/0.3144, allocations: 4.747 MB / 392.6 MB, free: 2.543 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003552/0.318, allocations: 76.06 kB / 392.7 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003503/0.3215, allocations: 1.137 MB / 393.8 MB, free: 1.945 MB / 318.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.004864/0.3264, allocations: 1.406 MB / 395.2 MB, free: 1.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002375/0.3288, allocations: 0.9677 MB / 396.2 MB, free: 440 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006125/0.3349, allocations: 4.064 MB / 400.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003842/0.3388, allocations: 3.209 MB / 403.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003367/0.3422, allocations: 1.928 MB / 405.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003117/0.3453, allocations: 2.162 MB / 407.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006918/0.346, allocations: 0.5122 MB / 408.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001656/0.3477, allocations: 0.7457 MB / 408.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001101/0.3488, allocations: 1.143 MB / 410 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002309/0.3511, allocations: 2.147 MB / 412.1 MB, free: 8.453 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006601/0.3577, allocations: 6.773 MB / 418.9 MB, free: 3.219 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.3578, allocations: 7.938 kB / 418.9 MB, free: 3.211 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3578, allocations: 0 / 418.9 MB, free: 3.211 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001058/0.3579, allocations: 0 / 418.9 MB, free: 3.211 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: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.01077/0.3687, allocations: 4.484 MB / 423.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.3687, allocations: 12.03 kB / 423.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004175/0.3729, allocations: 0.8239 MB / 424.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004527/0.3774, allocations: 2.33 MB / 426.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000187/0.3776, allocations: 238.4 kB / 426.8 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004888/0.3781, allocations: 315.9 kB / 427.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007242/0.3854, allocations: 4.28 MB / 431.4 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-05/0.3855, allocations: 11.94 kB / 431.4 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003018/0.3858, allocations: 132 kB / 431.5 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001368/0.3859, allocations: 154.4 kB / 431.7 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006057/0.392, allocations: 3.617 MB / 435.3 MB, free: 2.637 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01974/0.4118, allocations: 13.25 MB / 448.5 MB, free: 5.051 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006859/0.4187, allocations: 6.956 MB / 455.5 MB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002164/0.4209, allocations: 1.364 MB / 456.8 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006426/0.4273, allocations: 3.821 MB / 460.7 MB, free: 7.902 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001248/0.4286, allocations: 0.861 MB / 461.5 MB, free: 7.008 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.416e-06/0.4286, allocations: 0 / 461.5 MB, free: 7.008 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.01231/0.4409, allocations: 6.489 MB / 468 MB, free: 320 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001345/0.4411, allocations: 230.9 kB / 468.2 MB, free: 40 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002598/0.4437, allocations: 1.91 MB / 470.2 MB, free: 14.13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.604e-05/0.4438, allocations: 53.7 kB / 470.2 MB, free: 14.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001262/0.4451, allocations: 1.462 MB / 471.7 MB, free: 12.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003674/0.4454, allocations: 493 kB / 472.1 MB, free: 12.1 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004616/0.4459, allocations: 311.3 kB / 472.5 MB, free: 11.79 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.354e-05/0.446, allocations: 305.1 kB / 472.8 MB, free: 11.49 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00105/0.4471, allocations: 0.6598 MB / 473.4 MB, free: 10.83 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001443/0.4485, allocations: 1.214 MB / 474.6 MB, free: 9.395 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002523/0.451, allocations: 1.94 MB / 476.6 MB, free: 7.246 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.465e-06/0.4511, allocations: 7.938 kB / 476.6 MB, free: 7.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.00388/0.455, allocations: 2.424 MB / 479 MB, free: 4.773 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.455, allocations: 16 kB / 479 MB, free: 4.758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.04e-05/0.455, allocations: 12 kB / 479 MB, free: 4.746 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007337/0.4558, allocations: 283.2 kB / 479.3 MB, free: 4.457 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00139/0.4572, allocations: 387.4 kB / 479.7 MB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005753/0.4629, allocations: 6.378 MB / 486.1 MB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001494/0.4644, allocations: 88.02 kB / 486.1 MB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001272/0.4646, allocations: 75.98 kB / 486.2 MB, free: 13.12 MB / 414.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.001789/0.4664, allocations: 1.033 MB / 487.2 MB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002969/0.4667, allocations: 201.5 kB / 487.4 MB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003795/0.4705, allocations: 2.257 MB / 489.7 MB, free: 9.559 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.4705, allocations: 15.98 kB / 489.7 MB, free: 9.543 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.4705, allocations: 8 kB / 489.7 MB, free: 9.535 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.32e-05/0.4705, allocations: 3.984 kB / 489.7 MB, free: 9.531 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007736/0.4783, allocations: 5.084 MB / 494.8 MB, free: 4.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.4783, allocations: 0 / 494.8 MB, free: 4.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007909/0.4791, allocations: 183.9 kB / 495 MB, free: 4.141 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001244/0.4804, allocations: 472.2 kB / 495.5 MB, free: 3.664 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001151/0.4805, allocations: 39.92 kB / 495.5 MB, free: 3.625 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0106/0.4911, allocations: 11.13 MB / 0.4947 GB, free: 7.789 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.4911, allocations: 4.031 kB / 0.4948 GB, free: 7.785 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005004/0.4961, allocations: 3.132 MB / 0.4978 GB, free: 4.562 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009253/0.4971, allocations: 438.4 kB / 0.4982 GB, free: 4.113 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002297/0.4973, allocations: 32 kB / 0.4983 GB, free: 4.082 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008302/0.4982, allocations: 63.95 kB / 0.4983 GB, free: 4.02 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002448/0.4984, allocations: 109.1 kB / 0.4984 GB, free: 3.914 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.592e-05/0.4985, allocations: 35.98 kB / 0.4985 GB, free: 3.879 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00187/0.5004, allocations: 1.315 MB / 0.4997 GB, free: 2.574 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5004, allocations: 0 / 0.4997 GB, free: 2.574 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002068/0.5025, allocations: 0.5781 MB / 0.5003 GB, free: 1.996 MB / 430.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.001145/0.5036, allocations: 487.1 kB / 0.5008 GB, free: 1.512 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003545/0.5072, allocations: 2.16 MB / 0.5029 GB, free: 15.29 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.5072, allocations: 8.188 kB / 0.5029 GB, free: 15.29 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002419/0.5096, allocations: 1.594 MB / 0.5044 GB, free: 13.63 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002734/0.5124, allocations: 0.5328 MB / 0.505 GB, free: 13.09 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01113/0.5235, allocations: 5.786 MB / 0.5106 GB, free: 7.266 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002841/0.5264, allocations: 2.348 MB / 0.5129 GB, free: 4.883 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00155/0.528, allocations: 401 kB / 0.5133 GB, free: 4.488 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004767/0.5285, allocations: 143.4 kB / 0.5134 GB, free: 4.352 MB / 446.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5285, allocations: 0 / 0.5134 GB, free: 4.352 MB / 446.1 MB Notification: Performance of Templates: time 0.05457/0.5831, allocations: 30.52 MB / 0.5432 GB, free: 5.77 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe 2>&1)