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.004987/0.004988, allocations: 96.3 kB / 15.73 MB, free: 6.484 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.001111/0.001111, allocations: 191.4 kB / 16.67 MB, free: 6.391 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.377/1.377, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.00136/0.00136, allocations: 50.77 kB / 326.6 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1039, allocations: 46.64 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.01621/0.1202, allocations: 13.36 MB / 386.6 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01015/0.1304, allocations: 4.747 MB / 391.3 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002529/0.133, allocations: 75.69 kB / 391.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003799/0.1369, allocations: 1.087 MB / 392.5 MB, free: 13.93 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.005086/0.142, allocations: 1.367 MB / 393.8 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003086/0.1451, allocations: 0.9703 MB / 394.8 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006247/0.1513, allocations: 4.067 MB / 398.9 MB, free: 7.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004898/0.1563, allocations: 3.201 MB / 402.1 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003753/0.1601, allocations: 1.9 MB / 404 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004538/0.1646, allocations: 2.168 MB / 406.1 MB, free: 148 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001686/0.1664, allocations: 0.5118 MB / 406.7 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002961/0.1693, allocations: 0.7419 MB / 407.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001649/0.171, allocations: 1.145 MB / 408.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003287/0.1743, allocations: 2.147 MB / 410.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009417/0.1838, allocations: 6.809 MB / 417.5 MB, free: 4.754 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.688e-06/0.1838, allocations: 4 kB / 417.5 MB, free: 4.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.1838, allocations: 3.938 kB / 417.5 MB, free: 4.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002237/0.1841, allocations: 0 / 417.5 MB, free: 4.746 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.01288/0.197, allocations: 4.576 MB / 422.1 MB, free: 92 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.197, allocations: 12.03 kB / 422.1 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004286/0.2013, allocations: 0.8394 MB / 422.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004335/0.2057, allocations: 2.334 MB / 425.3 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001975/0.2059, allocations: 238.4 kB / 425.5 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006417/0.2065, allocations: 323.9 kB / 425.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008072/0.2146, allocations: 4.28 MB / 430.1 MB, free: 7.969 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.566e-05/0.2147, allocations: 11.98 kB / 430.1 MB, free: 7.957 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000308/0.2151, allocations: 135.9 kB / 430.2 MB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001535/0.2152, allocations: 150.4 kB / 430.4 MB, free: 7.676 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006507/0.2217, allocations: 3.625 MB / 434 MB, free: 4.043 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02181/0.2436, allocations: 13.28 MB / 447.3 MB, free: 6.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1979/0.4415, allocations: 6.963 MB / 454.3 MB, free: 66.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003005/0.4446, allocations: 1.356 MB / 455.6 MB, free: 66.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006336/0.4509, allocations: 3.828 MB / 459.4 MB, free: 64.36 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001259/0.4522, allocations: 0.8456 MB / 460.3 MB, free: 63.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 2.925e-06/0.4522, allocations: 3.281 kB / 460.3 MB, free: 63.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.01126/0.4635, allocations: 6.544 MB / 466.8 MB, free: 60.76 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.752e-05/0.4636, allocations: 229.9 kB / 467.1 MB, free: 60.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002534/0.4661, allocations: 1.908 MB / 469 MB, free: 59.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001313/0.4663, allocations: 52.58 kB / 469 MB, free: 59.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001034/0.4673, allocations: 1.517 MB / 470.5 MB, free: 58.78 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003446/0.4677, allocations: 0.5019 MB / 471 MB, free: 58.44 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004363/0.4681, allocations: 309.8 kB / 471.3 MB, free: 58.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.948e-05/0.4682, allocations: 306.3 kB / 471.6 MB, free: 57.99 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009931/0.4692, allocations: 0.6645 MB / 472.3 MB, free: 57.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001208/0.4704, allocations: 1.214 MB / 473.5 MB, free: 56.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00199/0.4724, allocations: 1.938 MB / 475.5 MB, free: 55.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.044e-05/0.4724, allocations: 3.938 kB / 475.5 MB, free: 55.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.003309/0.4757, allocations: 2.436 MB / 477.9 MB, free: 54.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.448e-05/0.4758, allocations: 7.875 kB / 477.9 MB, free: 54.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.183e-05/0.4758, allocations: 15.81 kB / 477.9 MB, free: 54.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006404/0.4764, allocations: 290.9 kB / 478.2 MB, free: 54.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/0.4777, allocations: 388.2 kB / 478.6 MB, free: 54.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004431/0.4821, allocations: 6.385 MB / 485 MB, free: 48.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001471/0.4836, allocations: 93.12 kB / 485.1 MB, free: 48.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001492/0.4838, allocations: 73 kB / 485.1 MB, free: 48.59 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.001769/0.4856, allocations: 1.04 MB / 486.2 MB, free: 47.88 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003824/0.486, allocations: 210.6 kB / 486.4 MB, free: 47.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003205/0.4892, allocations: 2.245 MB / 488.6 MB, free: 46.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.929e-06/0.4892, allocations: 14.66 kB / 488.6 MB, free: 46.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.775e-05/0.4892, allocations: 7.344 kB / 488.6 MB, free: 46.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.575e-05/0.4892, allocations: 7.969 kB / 488.6 MB, free: 46.35 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00662/0.4959, allocations: 5.086 MB / 493.7 MB, free: 41.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.4959, allocations: 4 kB / 493.7 MB, free: 41.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007119/0.4966, allocations: 179.7 kB / 493.9 MB, free: 41.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001047/0.4977, allocations: 467.9 kB / 494.4 MB, free: 40.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.866e-05/0.4978, allocations: 42.52 kB / 494.4 MB, free: 40.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007743/0.5055, allocations: 11.14 MB / 0.4937 GB, free: 29.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.5056, allocations: 0.625 kB / 0.4937 GB, free: 29.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004433/0.51, allocations: 3.149 MB / 0.4968 GB, free: 25.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001099/0.5111, allocations: 435.6 kB / 0.4972 GB, free: 25.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005599/0.5117, allocations: 39.98 kB / 0.4972 GB, free: 25.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/0.5128, allocations: 59.95 kB / 0.4973 GB, free: 25.26 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002136/0.513, allocations: 105.1 kB / 0.4974 GB, free: 25.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.551e-05/0.5131, allocations: 43.98 kB / 0.4974 GB, free: 25.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001699/0.5148, allocations: 1.315 MB / 0.4987 GB, free: 23.81 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5148, allocations: 0 / 0.4987 GB, free: 23.81 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002215/0.517, allocations: 0.5819 MB / 0.4993 GB, free: 23.23 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.00101/0.5181, allocations: 486.5 kB / 0.4997 GB, free: 22.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002867/0.5209, allocations: 2.17 MB / 0.5019 GB, free: 20.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.5209, allocations: 0 / 0.5019 GB, free: 20.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001843/0.5228, allocations: 1.583 MB / 0.5034 GB, free: 18.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00219/0.525, allocations: 0.5405 MB / 0.5039 GB, free: 18.37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008238/0.5333, allocations: 5.881 MB / 0.5097 GB, free: 12.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001474/0.5348, allocations: 2.344 MB / 0.512 GB, free: 10.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001159/0.5359, allocations: 413 kB / 0.5124 GB, free: 9.668 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003099/0.5363, allocations: 131.4 kB / 0.5125 GB, free: 9.539 MB / 382.1 MB Notification: Performance of SimCode: time 6.22e-07/0.5363, allocations: 0 / 0.5125 GB, free: 9.539 MB / 382.1 MB Notification: Performance of Templates: time 0.04812/0.5844, allocations: 30.53 MB / 0.5423 GB, free: 10.97 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)