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.001223/0.001223, allocations: 107.2 kB / 16.92 MB, free: 5.77 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.001241/0.001241, allocations: 191.5 kB / 17.85 MB, free: 5.168 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.379/1.379, allocations: 205.1 MB / 223.7 MB, free: 12.34 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.001407/0.001407, allocations: 56.56 kB / 280 MB, free: 3.184 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1053, allocations: 46.63 MB / 326.6 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.01578/0.1211, allocations: 13.39 MB / 340 MB, free: 7.02 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009746/0.1309, allocations: 4.736 MB / 344.7 MB, free: 2.266 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00196/0.133, allocations: 71.69 kB / 344.8 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002725/0.1357, allocations: 1.091 MB / 345.9 MB, free: 1.098 MB / 286.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.003771/0.1395, allocations: 1.367 MB / 347.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002237/0.1417, allocations: 0.9702 MB / 348.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00453/0.1463, allocations: 4.051 MB / 352.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003563/0.1499, allocations: 3.205 MB / 355.5 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002809/0.1527, allocations: 1.904 MB / 357.4 MB, free: 5.492 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002724/0.1554, allocations: 2.152 MB / 359.6 MB, free: 3.332 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000725/0.1562, allocations: 0.5078 MB / 360.1 MB, free: 2.824 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001474/0.1577, allocations: 0.7614 MB / 360.8 MB, free: 2.062 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009543/0.1586, allocations: 1.145 MB / 362 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002563/0.1612, allocations: 2.143 MB / 364.1 MB, free: 14.76 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00691/0.1681, allocations: 6.746 MB / 370.9 MB, free: 7.996 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.1682, allocations: 0 / 370.9 MB, free: 7.996 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1682, allocations: 3.938 kB / 370.9 MB, free: 7.992 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001337/0.1683, allocations: 0 / 370.9 MB, free: 7.992 MB / 318.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.01162/0.1799, allocations: 4.483 MB / 375.3 MB, free: 3.434 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.18, allocations: 8.031 kB / 375.4 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004384/0.1844, allocations: 0.8279 MB / 376.2 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004142/0.1886, allocations: 2.288 MB / 378.5 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002056/0.1888, allocations: 242.4 kB / 378.7 MB, free: 12 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1457/0.3345, allocations: 316.4 kB / 379 MB, free: 49.29 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008036/0.3426, allocations: 4.283 MB / 383.3 MB, free: 48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.965e-05/0.3427, allocations: 5.281 kB / 383.3 MB, free: 48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002762/0.3429, allocations: 127 kB / 383.4 MB, free: 47.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001678/0.3431, allocations: 153.8 kB / 383.6 MB, free: 47.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006457/0.3496, allocations: 3.619 MB / 387.2 MB, free: 46.47 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01697/0.3666, allocations: 13.43 MB / 400.6 MB, free: 37.71 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004931/0.3715, allocations: 6.952 MB / 407.6 MB, free: 31.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00181/0.3734, allocations: 1.381 MB / 409 MB, free: 30.39 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004917/0.3783, allocations: 3.852 MB / 412.8 MB, free: 26.67 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001004/0.3793, allocations: 0.8416 MB / 413.7 MB, free: 25.79 MB / 318.1 MB Notification: Performance of pre-optimization done (n=131): time 2.695e-06/0.3794, allocations: 0 / 413.7 MB, free: 25.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=139): time 0.01037/0.3897, allocations: 6.499 MB / 420.2 MB, free: 19.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.874e-05/0.3898, allocations: 222.9 kB / 420.4 MB, free: 18.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002171/0.392, allocations: 1.911 MB / 422.3 MB, free: 16.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.941e-05/0.3921, allocations: 49.7 kB / 422.3 MB, free: 16.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008501/0.393, allocations: 1.482 MB / 423.8 MB, free: 15.36 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002328/0.3932, allocations: 488.7 kB / 424.3 MB, free: 14.89 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003671/0.3936, allocations: 311.2 kB / 424.6 MB, free: 14.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.991e-05/0.3936, allocations: 309.1 kB / 424.9 MB, free: 14.28 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008701/0.3945, allocations: 0.6598 MB / 425.6 MB, free: 13.62 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001058/0.3956, allocations: 1.21 MB / 426.8 MB, free: 12.19 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001917/0.3975, allocations: 1.938 MB / 428.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.3975, allocations: 8 kB / 428.7 MB, free: 10.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.003162/0.4007, allocations: 2.428 MB / 431.1 MB, free: 7.574 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.041e-05/0.4008, allocations: 12 kB / 431.2 MB, free: 7.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.457e-05/0.4008, allocations: 16 kB / 431.2 MB, free: 7.547 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007555/0.4015, allocations: 288.2 kB / 431.5 MB, free: 7.254 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/0.4029, allocations: 383.4 kB / 431.8 MB, free: 6.879 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004284/0.4072, allocations: 6.383 MB / 438.2 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/0.4086, allocations: 96 kB / 438.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001395/0.4088, allocations: 71.94 kB / 438.4 MB, free: 15.93 MB / 334.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.001774/0.4106, allocations: 1.039 MB / 439.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000341/0.4109, allocations: 197.6 kB / 439.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003877/0.4148, allocations: 2.242 MB / 441.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/0.4148, allocations: 15.94 kB / 441.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.106e-05/0.4149, allocations: 8 kB / 441.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.912e-05/0.4149, allocations: 7.969 kB / 441.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007869/0.4228, allocations: 5.104 MB / 447 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.4228, allocations: 192 / 447 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008128/0.4236, allocations: 191.8 kB / 447.2 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001188/0.4248, allocations: 461.7 kB / 447.6 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.92e-05/0.4249, allocations: 39.98 kB / 447.7 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01063/0.4356, allocations: 11.14 MB / 458.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4356, allocations: 96 / 458.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005144/0.4407, allocations: 3.141 MB / 461.9 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001023/0.4418, allocations: 426.5 kB / 462.4 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002717/0.4421, allocations: 43.92 kB / 462.4 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008758/0.443, allocations: 59.95 kB / 462.5 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000318/0.4433, allocations: 97.17 kB / 462.6 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.807e-05/0.4434, allocations: 47.97 kB / 462.6 MB, free: 6.738 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001919/0.4453, allocations: 1.319 MB / 463.9 MB, free: 5.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4453, allocations: 0 / 463.9 MB, free: 5.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002158/0.4475, allocations: 0.5807 MB / 464.5 MB, free: 4.852 MB / 350.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.001142/0.4486, allocations: 480.2 kB / 465 MB, free: 4.395 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005045/0.4537, allocations: 2.574 MB / 467.5 MB, free: 1.777 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.623e-06/0.4537, allocations: 4 kB / 467.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002315/0.456, allocations: 1.575 MB / 469.1 MB, free: 140 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002466/0.4585, allocations: 0.5561 MB / 469.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00997/0.4685, allocations: 5.837 MB / 475.5 MB, free: 9.715 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002111/0.4707, allocations: 2.356 MB / 477.9 MB, free: 7.324 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001531/0.4722, allocations: 409 kB / 478.3 MB, free: 6.922 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003726/0.4726, allocations: 135.4 kB / 478.4 MB, free: 6.789 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4726, allocations: 3.938 kB / 478.4 MB, free: 6.785 MB / 366.1 MB Notification: Performance of Templates: time 0.05523/0.5278, allocations: 30.02 MB / 0.4965 GB, free: 8.727 MB / 398.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)