Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.006836/0.006836, allocations: 100.6 kB / 15.73 MB, free: 6.043 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.001286/0.001286, allocations: 191.7 kB / 16.67 MB, free: 5.957 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.376/1.376, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001222/0.001222, allocations: 62.47 kB / 326.6 MB, free: 14.31 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08855/0.08978, allocations: 46.61 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.01413/0.1039, allocations: 13.38 MB / 386.6 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01004/0.114, allocations: 4.743 MB / 391.3 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002323/0.1164, allocations: 71.69 kB / 391.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003769/0.1202, allocations: 1.134 MB / 392.5 MB, free: 13.89 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.005275/0.1255, allocations: 1.406 MB / 393.9 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002999/0.1285, allocations: 0.9714 MB / 394.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005757/0.1343, allocations: 4.074 MB / 399 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005237/0.1395, allocations: 3.193 MB / 402.2 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003269/0.1428, allocations: 1.92 MB / 404.1 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004009/0.1469, allocations: 2.16 MB / 406.2 MB, free: 52 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001337/0.1482, allocations: 0.5079 MB / 406.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002604/0.1508, allocations: 0.7458 MB / 407.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001531/0.1524, allocations: 1.153 MB / 408.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003864/0.1563, allocations: 2.143 MB / 410.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008876/0.1652, allocations: 6.781 MB / 417.6 MB, free: 4.688 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1652, allocations: 4 kB / 417.6 MB, free: 4.684 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1652, allocations: 0 / 417.6 MB, free: 4.684 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002215/0.1654, allocations: 0 / 417.6 MB, free: 4.684 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.01743/0.1829, allocations: 4.495 MB / 422.1 MB, free: 116 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/0.183, allocations: 12.03 kB / 422.1 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004362/0.1873, allocations: 0.8164 MB / 422.9 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004304/0.1917, allocations: 2.326 MB / 425.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001857/0.1919, allocations: 246.4 kB / 425.5 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004937/0.1924, allocations: 323.9 kB / 425.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007817/0.2002, allocations: 4.28 MB / 430.1 MB, free: 8.008 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.678e-05/0.2003, allocations: 4 kB / 430.1 MB, free: 8.004 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003365/0.2006, allocations: 128 kB / 430.2 MB, free: 7.879 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001525/0.2008, allocations: 158.4 kB / 430.3 MB, free: 7.723 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006369/0.2072, allocations: 3.617 MB / 434 MB, free: 4.098 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01957/0.2268, allocations: 13.25 MB / 447.2 MB, free: 6.512 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2284/0.4552, allocations: 6.961 MB / 454.2 MB, free: 65.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002992/0.4582, allocations: 1.36 MB / 455.5 MB, free: 65.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007194/0.4654, allocations: 3.818 MB / 459.3 MB, free: 64.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00146/0.4669, allocations: 0.852 MB / 460.2 MB, free: 64 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 4.428e-06/0.4669, allocations: 0 / 460.2 MB, free: 64 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.01249/0.4794, allocations: 6.492 MB / 466.7 MB, free: 60.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.707e-05/0.4796, allocations: 230.6 kB / 466.9 MB, free: 60.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002822/0.4824, allocations: 1.912 MB / 468.8 MB, free: 59.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001161/0.4825, allocations: 48.7 kB / 468.9 MB, free: 59.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001243/0.4838, allocations: 1.48 MB / 470.4 MB, free: 58.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003221/0.4841, allocations: 486.3 kB / 470.8 MB, free: 58.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004466/0.4846, allocations: 307.4 kB / 471.1 MB, free: 58.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.481e-05/0.4847, allocations: 301.1 kB / 471.4 MB, free: 57.76 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001059/0.4857, allocations: 0.6653 MB / 472.1 MB, free: 57.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001316/0.487, allocations: 1.214 MB / 473.3 MB, free: 56.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002211/0.4893, allocations: 1.94 MB / 475.2 MB, free: 55.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-06/0.4893, allocations: 3.969 kB / 475.2 MB, free: 55.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.003743/0.493, allocations: 2.431 MB / 477.7 MB, free: 54.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.212e-05/0.4931, allocations: 11.91 kB / 477.7 MB, free: 54.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.514e-05/0.4931, allocations: 19.62 kB / 477.7 MB, free: 54.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006846/0.4938, allocations: 281.4 kB / 478 MB, free: 54.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001312/0.4951, allocations: 379.3 kB / 478.4 MB, free: 54.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004658/0.4998, allocations: 6.38 MB / 484.7 MB, free: 48.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001962/0.5018, allocations: 93.86 kB / 484.8 MB, free: 48.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001416/0.502, allocations: 71.5 kB / 484.9 MB, free: 48.42 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.001934/0.5039, allocations: 1.038 MB / 485.9 MB, free: 47.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004008/0.5043, allocations: 208.6 kB / 486.1 MB, free: 47.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003316/0.5076, allocations: 2.24 MB / 488.4 MB, free: 46.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/0.5077, allocations: 19.06 kB / 488.4 MB, free: 46.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.5077, allocations: 4.625 kB / 488.4 MB, free: 46.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.44e-05/0.5077, allocations: 15 kB / 488.4 MB, free: 46.19 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006627/0.5143, allocations: 5.078 MB / 493.5 MB, free: 41.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.5144, allocations: 8.125 kB / 493.5 MB, free: 41.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007337/0.5151, allocations: 183.7 kB / 493.7 MB, free: 41.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00102/0.5161, allocations: 466.1 kB / 494.1 MB, free: 40.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.991e-05/0.5162, allocations: 35.98 kB / 494.2 MB, free: 40.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007787/0.524, allocations: 11.13 MB / 0.4935 GB, free: 28.85 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.5241, allocations: 0 / 0.4935 GB, free: 28.85 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00427/0.5283, allocations: 3.14 MB / 0.4965 GB, free: 25.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000926/0.5293, allocations: 426.5 kB / 0.4969 GB, free: 25.19 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002786/0.5296, allocations: 39.98 kB / 0.497 GB, free: 25.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008773/0.5305, allocations: 59.95 kB / 0.497 GB, free: 25.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002538/0.5307, allocations: 105.1 kB / 0.4971 GB, free: 24.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.061e-05/0.5308, allocations: 42.17 kB / 0.4972 GB, free: 24.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001627/0.5324, allocations: 1.315 MB / 0.4984 GB, free: 23.64 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5324, allocations: 7.844 kB / 0.4985 GB, free: 23.64 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002048/0.5345, allocations: 0.5846 MB / 0.499 GB, free: 23.06 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.001048/0.5356, allocations: 477.9 kB / 0.4995 GB, free: 22.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002836/0.5384, allocations: 2.171 MB / 0.5016 GB, free: 20.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.5384, allocations: 0 / 0.5016 GB, free: 20.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001864/0.5403, allocations: 1.577 MB / 0.5031 GB, free: 18.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002166/0.5425, allocations: 0.5444 MB / 0.5037 GB, free: 18.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007994/0.5505, allocations: 5.779 MB / 0.5093 GB, free: 12.4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001499/0.552, allocations: 2.352 MB / 0.5116 GB, free: 10.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001303/0.5533, allocations: 413 kB / 0.512 GB, free: 9.613 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000322/0.5537, allocations: 135.4 kB / 0.5121 GB, free: 9.48 MB / 382.1 MB Notification: Performance of SimCode: time 1.383e-06/0.5537, allocations: 0 / 0.5121 GB, free: 9.48 MB / 382.1 MB Notification: Performance of Templates: time 0.05533/0.609, allocations: 30.52 MB / 0.5419 GB, free: 10.93 MB / 414.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe 2>&1)