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.001702/0.001702, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002017/0.002017, allocations: 194.2 kB / 16.13 MB, free: 6.66 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.523/1.523, allocations: 205.1 MB / 222 MB, free: 4.965 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.001237/0.001237, allocations: 47.92 kB / 278.1 MB, free: 12.99 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2284, allocations: 46.63 MB / 324.7 MB, free: 1.828 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.01409/0.2425, allocations: 13.23 MB / 337.9 MB, free: 6.914 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008976/0.2515, allocations: 4.699 MB / 342.6 MB, free: 2.203 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003061/0.2547, allocations: 67.69 kB / 342.7 MB, free: 2.137 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002885/0.2576, allocations: 0.9603 MB / 343.6 MB, free: 1.172 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004002/0.2617, allocations: 1.24 MB / 344.9 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002016/0.2637, allocations: 0.9049 MB / 345.8 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005194/0.2689, allocations: 4.32 MB / 350.1 MB, free: 10.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003185/0.2721, allocations: 2.67 MB / 352.8 MB, free: 7.941 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002059/0.2742, allocations: 1.518 MB / 354.3 MB, free: 6.418 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002099/0.2763, allocations: 1.992 MB / 356.3 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004565/0.2767, allocations: 296 kB / 356.6 MB, free: 4.129 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001246/0.278, allocations: 0.5388 MB / 357.1 MB, free: 3.59 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007498/0.2787, allocations: 0.9109 MB / 358 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00184/0.2806, allocations: 1.909 MB / 359.9 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005312/0.2859, allocations: 6.562 MB / 366.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2859, allocations: 0 / 366.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.286, allocations: 0 / 366.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.328e-05/0.2861, allocations: 4 kB / 366.5 MB, free: 10.17 MB / 302.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.01037/0.2964, allocations: 4.479 MB / 371 MB, free: 5.617 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.2965, allocations: 12.03 kB / 371 MB, free: 5.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004142/0.3007, allocations: 0.8241 MB / 371.8 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003731/0.3044, allocations: 2.249 MB / 374.1 MB, free: 2.473 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000174/0.3046, allocations: 238.4 kB / 374.3 MB, free: 2.238 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004577/0.3051, allocations: 319.9 kB / 374.6 MB, free: 1.926 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007325/0.3124, allocations: 4.3 MB / 378.9 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.301e-05/0.3125, allocations: 0 / 378.9 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002993/0.3128, allocations: 128 kB / 379 MB, free: 13.45 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001524/0.313, allocations: 154.4 kB / 379.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005986/0.3189, allocations: 3.617 MB / 382.8 MB, free: 9.672 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0192/0.3382, allocations: 13.42 MB / 396.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006248/0.3444, allocations: 6.97 MB / 403.2 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002283/0.3468, allocations: 1.382 MB / 404.6 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006764/0.3536, allocations: 3.832 MB / 408.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001324/0.3549, allocations: 0.8571 MB / 409.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=131): time 3.056e-06/0.3549, allocations: 0 / 409.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=139): time 0.01236/0.3673, allocations: 6.493 MB / 415.8 MB, free: 7.145 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.919e-05/0.3674, allocations: 226.9 kB / 416 MB, free: 6.875 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002585/0.37, allocations: 1.911 MB / 417.9 MB, free: 4.965 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001006/0.3702, allocations: 53.7 kB / 417.9 MB, free: 4.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001224/0.3714, allocations: 1.474 MB / 419.4 MB, free: 3.414 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003669/0.3718, allocations: 481 kB / 419.9 MB, free: 2.938 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004433/0.3722, allocations: 315.3 kB / 420.2 MB, free: 2.625 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.613e-05/0.3723, allocations: 305.1 kB / 420.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/0.3734, allocations: 0.6598 MB / 421.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001408/0.3748, allocations: 1.214 MB / 422.4 MB, free: 224 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002518/0.3773, allocations: 1.936 MB / 424.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.3774, allocations: 4 kB / 424.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.004009/0.3814, allocations: 2.424 MB / 426.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.907e-05/0.3814, allocations: 16.03 kB / 426.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.927e-05/0.3814, allocations: 16 kB / 426.8 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007743/0.3822, allocations: 287.2 kB / 427 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001445/0.3837, allocations: 383.4 kB / 427.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005498/0.3892, allocations: 5.863 MB / 433.3 MB, free: 4.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001313/0.3905, allocations: 88.11 kB / 433.4 MB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/0.3907, allocations: 76 kB / 433.4 MB, free: 4.488 MB / 366.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.001762/0.3924, allocations: 1.031 MB / 434.5 MB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003709/0.3928, allocations: 209.7 kB / 434.7 MB, free: 3.242 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003967/0.3968, allocations: 2.25 MB / 436.9 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/0.3968, allocations: 12 kB / 436.9 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.694e-05/0.3968, allocations: 12 kB / 436.9 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.736e-05/0.3969, allocations: 7.969 kB / 437 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008376/0.4053, allocations: 5.102 MB / 442.1 MB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.4053, allocations: 4 kB / 442.1 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007923/0.4061, allocations: 187.8 kB / 442.2 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00122/0.4073, allocations: 455.9 kB / 442.7 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001105/0.4074, allocations: 39.98 kB / 442.7 MB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009615/0.4171, allocations: 10.19 MB / 452.9 MB, free: 124 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.4171, allocations: 0 / 452.9 MB, free: 124 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2014/0.6185, allocations: 3.129 MB / 456 MB, free: 108.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009876/0.6195, allocations: 432.4 kB / 456.5 MB, free: 108.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002615/0.6198, allocations: 36.69 kB / 456.5 MB, free: 108.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009311/0.6207, allocations: 65.2 kB / 456.6 MB, free: 108.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002679/0.621, allocations: 101.5 kB / 456.7 MB, free: 108.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.707e-05/0.6211, allocations: 45.67 kB / 456.7 MB, free: 108.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001831/0.6229, allocations: 1.315 MB / 458 MB, free: 108.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.623, allocations: 1 kB / 458 MB, free: 108.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002138/0.6251, allocations: 0.5764 MB / 458.6 MB, free: 108.1 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.00111/0.6262, allocations: 474.4 kB / 459.1 MB, free: 107.8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003025/0.6293, allocations: 2.169 MB / 461.2 MB, free: 106.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.6293, allocations: 0 / 461.2 MB, free: 106.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001858/0.6311, allocations: 1.58 MB / 462.8 MB, free: 105.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002047/0.6332, allocations: 0.5143 MB / 463.3 MB, free: 105.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008609/0.6418, allocations: 7.196 MB / 470.5 MB, free: 101.4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001538/0.6434, allocations: 2.353 MB / 472.9 MB, free: 100.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001352/0.6447, allocations: 405.3 kB / 473.3 MB, free: 100 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003104/0.6451, allocations: 130.9 kB / 473.4 MB, free: 99.9 MB / 382.1 MB Notification: Performance of SimCode: time 7.12e-07/0.6451, allocations: 8 kB / 473.4 MB, free: 99.89 MB / 382.1 MB Notification: Performance of Templates: time 0.04016/0.6852, allocations: 28.91 MB / 0.4905 GB, free: 71.42 MB / 382.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)