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.005408/0.005408, allocations: 101.8 kB / 15.73 MB, free: 5.992 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.001123, allocations: 189.5 kB / 16.67 MB, free: 5.914 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.381/1.381, allocations: 205.1 MB / 222.5 MB, free: 4.379 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.001506/0.001506, allocations: 54.09 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1045, allocations: 46.63 MB / 373.2 MB, free: 1.266 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.01618/0.1208, allocations: 13.38 MB / 386.6 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009777/0.1306, allocations: 4.74 MB / 391.3 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002729/0.1334, allocations: 71.69 kB / 391.4 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003866/0.1373, allocations: 1.13 MB / 392.5 MB, free: 13.86 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.005704/0.143, allocations: 1.406 MB / 393.9 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003431/0.1465, allocations: 0.9675 MB / 394.9 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006563/0.1531, allocations: 4.07 MB / 399 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005728/0.1588, allocations: 3.201 MB / 402.2 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003966/0.1628, allocations: 1.92 MB / 404.1 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004347/0.1672, allocations: 2.164 MB / 406.2 MB, free: 16 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001425/0.1686, allocations: 0.5079 MB / 406.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002463/0.1711, allocations: 0.7497 MB / 407.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001785/0.1729, allocations: 1.149 MB / 408.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00482/0.1778, allocations: 2.143 MB / 410.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009049/0.1868, allocations: 6.777 MB / 417.6 MB, free: 4.656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.225e-06/0.1869, allocations: 7.984 kB / 417.6 MB, free: 4.648 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1869, allocations: 0 / 417.6 MB, free: 4.648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002023/0.1871, allocations: 0 / 417.6 MB, free: 4.648 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.01363/0.2008, allocations: 4.487 MB / 422.1 MB, free: 88 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.2008, allocations: 12.03 kB / 422.1 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004259/0.2051, allocations: 0.8203 MB / 422.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004662/0.2098, allocations: 2.326 MB / 425.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002005/0.21, allocations: 246.3 kB / 425.5 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004738/0.2105, allocations: 319.9 kB / 425.8 MB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007501/0.218, allocations: 4.284 MB / 430.1 MB, free: 7.977 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.652e-05/0.2181, allocations: 4 kB / 430.1 MB, free: 7.973 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002979/0.2184, allocations: 136 kB / 430.2 MB, free: 7.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001387/0.2185, allocations: 150.4 kB / 430.3 MB, free: 7.691 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006202/0.2247, allocations: 3.617 MB / 434 MB, free: 4.066 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02046/0.2452, allocations: 13.25 MB / 447.2 MB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2205/0.4658, allocations: 6.957 MB / 454.2 MB, free: 65.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002993/0.4688, allocations: 1.359 MB / 455.5 MB, free: 65.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006438/0.4753, allocations: 3.817 MB / 459.3 MB, free: 64.28 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001499/0.4768, allocations: 0.8474 MB / 460.2 MB, free: 63.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.216e-06/0.4768, allocations: 0 / 460.2 MB, free: 63.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.01267/0.4895, allocations: 6.503 MB / 466.7 MB, free: 60.61 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.205e-05/0.4896, allocations: 226.1 kB / 466.9 MB, free: 60.35 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002885/0.4925, allocations: 1.907 MB / 468.8 MB, free: 59.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.4926, allocations: 48.58 kB / 468.9 MB, free: 59.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001295/0.4939, allocations: 1.48 MB / 470.3 MB, free: 58.46 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000329/0.4943, allocations: 490 kB / 470.8 MB, free: 58.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004377/0.4947, allocations: 306.9 kB / 471.1 MB, free: 57.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.44e-05/0.4948, allocations: 305 kB / 471.4 MB, free: 57.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009954/0.4958, allocations: 0.6651 MB / 472.1 MB, free: 57.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001638/0.4974, allocations: 1.216 MB / 473.3 MB, free: 56.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002096/0.4995, allocations: 1.934 MB / 475.2 MB, free: 55.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.746e-06/0.4995, allocations: 3.938 kB / 475.2 MB, free: 55.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.003447/0.503, allocations: 2.433 MB / 477.7 MB, free: 54.08 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.503, allocations: 11.84 kB / 477.7 MB, free: 54.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.5031, allocations: 17.59 kB / 477.7 MB, free: 54.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006738/0.5037, allocations: 284.8 kB / 478 MB, free: 53.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.505, allocations: 382.5 kB / 478.4 MB, free: 53.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00443/0.5095, allocations: 6.376 MB / 484.7 MB, free: 48.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001533/0.511, allocations: 91.98 kB / 484.8 MB, free: 48.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/0.5112, allocations: 73.42 kB / 484.9 MB, free: 48.33 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.001606/0.5128, allocations: 1.041 MB / 485.9 MB, free: 47.63 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002775/0.5131, allocations: 201.4 kB / 486.1 MB, free: 47.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003154/0.5162, allocations: 2.244 MB / 488.4 MB, free: 46.11 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.5162, allocations: 14.97 kB / 488.4 MB, free: 46.11 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.5163, allocations: 7.688 kB / 488.4 MB, free: 46.11 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.402e-05/0.5163, allocations: 7.969 kB / 488.4 MB, free: 46.11 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006198/0.5225, allocations: 5.099 MB / 493.5 MB, free: 41.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.5225, allocations: 0 / 493.5 MB, free: 41.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007113/0.5232, allocations: 187.7 kB / 493.7 MB, free: 41.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009993/0.5242, allocations: 468.8 kB / 494.1 MB, free: 40.58 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-05/0.5243, allocations: 35.98 kB / 494.2 MB, free: 40.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00757/0.5319, allocations: 11.13 MB / 0.4935 GB, free: 28.76 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.5319, allocations: 4.031 kB / 0.4935 GB, free: 28.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004061/0.536, allocations: 3.136 MB / 0.4965 GB, free: 25.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006819/0.5367, allocations: 426.5 kB / 0.4969 GB, free: 25.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002475/0.537, allocations: 35.98 kB / 0.497 GB, free: 25.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008318/0.5378, allocations: 63.95 kB / 0.497 GB, free: 25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002237/0.538, allocations: 107.6 kB / 0.4971 GB, free: 24.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.853e-05/0.5381, allocations: 39.98 kB / 0.4972 GB, free: 24.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001495/0.5396, allocations: 1.315 MB / 0.4985 GB, free: 23.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5396, allocations: 0 / 0.4985 GB, free: 23.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001852/0.5415, allocations: 0.5884 MB / 0.499 GB, free: 22.96 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.0009946/0.5425, allocations: 468.6 kB / 0.4995 GB, free: 22.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002702/0.5452, allocations: 2.17 MB / 0.5016 GB, free: 20.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.5452, allocations: 1.875 kB / 0.5016 GB, free: 20.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00181/0.547, allocations: 1.58 MB / 0.5031 GB, free: 18.67 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002013/0.549, allocations: 0.5409 MB / 0.5037 GB, free: 18.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008185/0.5572, allocations: 5.782 MB / 0.5093 GB, free: 12.33 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00156/0.5588, allocations: 2.348 MB / 0.5116 GB, free: 9.949 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001277/0.5601, allocations: 413 kB / 0.512 GB, free: 9.543 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003054/0.5604, allocations: 143.3 kB / 0.5121 GB, free: 9.402 MB / 382.1 MB Notification: Performance of SimCode: time 9.12e-07/0.5604, allocations: 0 / 0.5121 GB, free: 9.402 MB / 382.1 MB Notification: Performance of Templates: time 0.05388/0.6143, allocations: 30.51 MB / 0.5419 GB, free: 10.86 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)