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.001558/0.001559, allocations: 104.5 kB / 17.06 MB, free: 6.016 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.001718/0.001718, allocations: 196 kB / 18 MB, free: 5.094 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.388/1.388, 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.001182/0.001182, allocations: 51.94 kB / 327.9 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09026/0.09145, allocations: 46.62 MB / 374.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.2348/0.3263, allocations: 13.38 MB / 387.9 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008896/0.3352, allocations: 4.747 MB / 392.6 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002972/0.3383, allocations: 76.06 kB / 392.7 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003341/0.3416, allocations: 1.099 MB / 393.8 MB, free: 1.949 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.004751/0.3464, allocations: 1.361 MB / 395.2 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002573/0.349, allocations: 0.9697 MB / 396.1 MB, free: 472 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005965/0.355, allocations: 4.067 MB / 400.2 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004139/0.3591, allocations: 3.205 MB / 403.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00366/0.3628, allocations: 1.923 MB / 405.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004339/0.3672, allocations: 2.161 MB / 407.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001233/0.3684, allocations: 0.5131 MB / 408 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002528/0.371, allocations: 0.7478 MB / 408.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001267/0.3723, allocations: 1.145 MB / 409.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003572/0.3758, allocations: 2.147 MB / 412 MB, free: 8.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007948/0.3838, allocations: 6.781 MB / 418.8 MB, free: 3.285 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.3838, allocations: 0 / 418.8 MB, free: 3.285 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3838, allocations: 0 / 418.8 MB, free: 3.285 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001635/0.384, allocations: 0 / 418.8 MB, free: 3.285 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.01185/0.3959, allocations: 4.492 MB / 423.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.3959, allocations: 11.97 kB / 423.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004347/0.4003, allocations: 0.824 MB / 424.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004748/0.4051, allocations: 2.323 MB / 426.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002104/0.4053, allocations: 234.4 kB / 426.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006177/0.4059, allocations: 323.9 kB / 427 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008076/0.414, allocations: 4.276 MB / 431.3 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.173e-05/0.4141, allocations: 15.98 kB / 431.3 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003194/0.4145, allocations: 128 kB / 431.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001545/0.4146, allocations: 150.4 kB / 431.6 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006481/0.4211, allocations: 3.617 MB / 435.2 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02284/0.444, allocations: 13.25 MB / 448.4 MB, free: 5.125 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007293/0.4513, allocations: 6.952 MB / 455.4 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002385/0.4537, allocations: 1.364 MB / 456.8 MB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007175/0.4609, allocations: 3.824 MB / 460.6 MB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001322/0.4623, allocations: 0.8533 MB / 461.4 MB, free: 7.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.376e-06/0.4623, allocations: 0 / 461.4 MB, free: 7.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.013/0.4753, allocations: 6.493 MB / 467.9 MB, free: 400 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/0.4755, allocations: 222.9 kB / 468.2 MB, free: 128 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002838/0.4783, allocations: 1.922 MB / 470.1 MB, free: 14.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001485/0.4785, allocations: 49.7 kB / 470.1 MB, free: 14.15 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001375/0.4799, allocations: 1.466 MB / 471.6 MB, free: 12.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000445/0.4803, allocations: 493 kB / 472.1 MB, free: 12.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005007/0.4808, allocations: 311.3 kB / 472.4 MB, free: 11.87 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.481, allocations: 305.1 kB / 472.7 MB, free: 11.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001137/0.4821, allocations: 0.6598 MB / 473.3 MB, free: 10.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001443/0.4836, allocations: 1.214 MB / 474.5 MB, free: 9.469 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002573/0.4861, allocations: 1.936 MB / 476.5 MB, free: 7.324 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.727e-06/0.4862, allocations: 4 kB / 476.5 MB, free: 7.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.004104/0.4903, allocations: 2.424 MB / 478.9 MB, free: 4.855 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.05e-05/0.4903, allocations: 16.06 kB / 478.9 MB, free: 4.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.993e-05/0.4904, allocations: 12 kB / 478.9 MB, free: 4.828 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008066/0.4912, allocations: 287.2 kB / 479.2 MB, free: 4.535 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001432/0.4926, allocations: 387.4 kB / 479.6 MB, free: 4.156 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005777/0.4984, allocations: 6.378 MB / 486 MB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001775/0.5002, allocations: 92.02 kB / 486.1 MB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001647/0.5004, allocations: 72 kB / 486.1 MB, free: 13.2 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.002097/0.5025, allocations: 1.039 MB / 487.2 MB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004229/0.5029, allocations: 197.6 kB / 487.4 MB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003937/0.5069, allocations: 2.253 MB / 489.6 MB, free: 9.641 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.284e-05/0.5069, allocations: 15.94 kB / 489.6 MB, free: 9.625 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/0.507, allocations: 8 kB / 489.6 MB, free: 9.617 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.674e-05/0.507, allocations: 7.969 kB / 489.6 MB, free: 9.609 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00886/0.5158, allocations: 5.08 MB / 494.7 MB, free: 4.402 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/0.5159, allocations: 0 / 494.7 MB, free: 4.402 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007604/0.5166, allocations: 187.8 kB / 494.9 MB, free: 4.219 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001208/0.5179, allocations: 468.3 kB / 495.4 MB, free: 3.746 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.892e-05/0.518, allocations: 43.92 kB / 495.4 MB, free: 3.703 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01086/0.5288, allocations: 11.12 MB / 0.4947 GB, free: 7.871 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.5289, allocations: 4.031 kB / 0.4947 GB, free: 7.867 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005057/0.534, allocations: 3.14 MB / 0.4977 GB, free: 4.637 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/0.5351, allocations: 438.5 kB / 0.4982 GB, free: 4.188 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002658/0.5354, allocations: 35.98 kB / 0.4982 GB, free: 4.152 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008597/0.5362, allocations: 67.95 kB / 0.4983 GB, free: 4.086 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002592/0.5365, allocations: 97.17 kB / 0.4983 GB, free: 3.992 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.235e-05/0.5366, allocations: 39.98 kB / 0.4984 GB, free: 3.953 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001879/0.5385, allocations: 1.315 MB / 0.4997 GB, free: 2.648 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5385, allocations: 0 / 0.4997 GB, free: 2.648 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002109/0.5406, allocations: 0.5781 MB / 0.5002 GB, free: 2.07 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.001144/0.5418, allocations: 480.4 kB / 0.5007 GB, free: 1.59 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003323/0.5451, allocations: 2.168 MB / 0.5028 GB, free: 15.36 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/0.5451, allocations: 4.062 kB / 0.5028 GB, free: 15.36 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002277/0.5474, allocations: 1.598 MB / 0.5044 GB, free: 13.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002448/0.5499, allocations: 0.5251 MB / 0.5049 GB, free: 13.17 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009434/0.5593, allocations: 5.779 MB / 0.5105 GB, free: 7.352 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002019/0.5614, allocations: 2.356 MB / 0.5128 GB, free: 4.961 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001416/0.5628, allocations: 409 kB / 0.5132 GB, free: 4.559 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000354/0.5632, allocations: 127.4 kB / 0.5133 GB, free: 4.438 MB / 446.1 MB Notification: Performance of SimCode: time 1.102e-06/0.5632, allocations: 4 kB / 0.5133 GB, free: 4.434 MB / 446.1 MB Notification: Performance of Templates: time 0.05325/0.6165, allocations: 30.93 MB / 0.5435 GB, free: 5.445 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)