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.007856/0.007856, allocations: 101.4 kB / 15.73 MB, free: 5.492 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.00164/0.00164, allocations: 186.2 kB / 16.67 MB, free: 5.422 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.433/1.433, allocations: 205.1 MB / 222.6 MB, free: 4.363 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.00131/0.001311, allocations: 47.98 kB / 326.6 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09242/0.09375, allocations: 46.63 MB / 373.2 MB, free: 1.273 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.0156/0.1094, allocations: 13.38 MB / 386.6 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01022/0.1197, allocations: 4.736 MB / 391.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002838/0.1226, allocations: 71.69 kB / 391.4 MB, free: 15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004217/0.1268, allocations: 1.142 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.005766/0.1326, allocations: 1.402 MB / 393.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003228/0.1359, allocations: 0.9675 MB / 394.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006193/0.1421, allocations: 4.071 MB / 399 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005217/0.1473, allocations: 3.201 MB / 402.2 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003692/0.1511, allocations: 1.92 MB / 404.1 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004392/0.1555, allocations: 2.164 MB / 406.2 MB, free: 20 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001475/0.157, allocations: 0.5079 MB / 406.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002568/0.1596, allocations: 0.7536 MB / 407.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001971/0.1616, allocations: 1.141 MB / 408.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004282/0.1659, allocations: 2.139 MB / 410.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008955/0.1748, allocations: 6.785 MB / 417.6 MB, free: 4.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.1749, allocations: 0 / 417.6 MB, free: 4.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1749, allocations: 4 kB / 417.6 MB, free: 4.656 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001529/0.1751, allocations: 0 / 417.6 MB, free: 4.656 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.01194/0.187, allocations: 4.487 MB / 422.1 MB, free: 96 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.283e-05/0.1871, allocations: 8.031 kB / 422.1 MB, free: 88 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004371/0.1915, allocations: 0.8242 MB / 422.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004597/0.1961, allocations: 2.322 MB / 425.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002327/0.1964, allocations: 246.4 kB / 425.5 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005552/0.1969, allocations: 319.9 kB / 425.8 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007687/0.2046, allocations: 4.284 MB / 430.1 MB, free: 7.988 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.956e-05/0.2048, allocations: 0 / 430.1 MB, free: 7.988 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003198/0.2051, allocations: 136 kB / 430.2 MB, free: 7.855 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001594/0.2053, allocations: 146.4 kB / 430.3 MB, free: 7.711 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006795/0.2121, allocations: 3.629 MB / 434 MB, free: 4.074 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02129/0.2334, allocations: 13.24 MB / 447.2 MB, free: 6.492 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1872/0.4206, allocations: 6.962 MB / 454.2 MB, free: 65.8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003356/0.424, allocations: 1.356 MB / 455.5 MB, free: 65.79 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007664/0.4316, allocations: 3.822 MB / 459.3 MB, free: 64.35 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001479/0.4332, allocations: 0.846 MB / 460.2 MB, free: 63.96 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 6.122e-06/0.4332, allocations: 0.6562 kB / 460.2 MB, free: 63.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.01253/0.4457, allocations: 6.499 MB / 466.7 MB, free: 60.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.032e-05/0.4458, allocations: 228.9 kB / 466.9 MB, free: 60.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002722/0.4485, allocations: 1.91 MB / 468.8 MB, free: 59.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001024/0.4487, allocations: 48.3 kB / 468.9 MB, free: 59.63 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001067/0.4497, allocations: 1.473 MB / 470.3 MB, free: 58.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000295/0.45, allocations: 490.1 kB / 470.8 MB, free: 58.15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00042/0.4505, allocations: 310.2 kB / 471.1 MB, free: 58 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.726e-05/0.4505, allocations: 302.5 kB / 471.4 MB, free: 57.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001018/0.4515, allocations: 0.6694 MB / 472.1 MB, free: 57.45 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/0.4528, allocations: 1.209 MB / 473.3 MB, free: 56.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002054/0.4549, allocations: 1.944 MB / 475.2 MB, free: 55.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.625e-06/0.4549, allocations: 3.938 kB / 475.2 MB, free: 55.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.003295/0.4582, allocations: 2.428 MB / 477.7 MB, free: 54.13 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/0.4582, allocations: 11.91 kB / 477.7 MB, free: 54.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.033e-05/0.4583, allocations: 18.53 kB / 477.7 MB, free: 54.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006776/0.459, allocations: 286.5 kB / 478 MB, free: 54.03 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001248/0.4602, allocations: 382.4 kB / 478.4 MB, free: 53.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004341/0.4646, allocations: 6.381 MB / 484.7 MB, free: 48.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/0.466, allocations: 93.61 kB / 484.8 MB, free: 48.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/0.4661, allocations: 74.8 kB / 484.9 MB, free: 48.37 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.001597/0.4677, allocations: 1.034 MB / 485.9 MB, free: 47.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002887/0.468, allocations: 201.2 kB / 486.1 MB, free: 47.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003162/0.4712, allocations: 2.247 MB / 488.4 MB, free: 46.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.4712, allocations: 11.41 kB / 488.4 MB, free: 46.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.379e-05/0.4712, allocations: 14.84 kB / 488.4 MB, free: 46.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.4712, allocations: 7.969 kB / 488.4 MB, free: 46.15 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006693/0.4779, allocations: 5.084 MB / 493.5 MB, free: 41.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.478, allocations: 128 / 493.5 MB, free: 41.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006994/0.4787, allocations: 191.7 kB / 493.7 MB, free: 41.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001025/0.4797, allocations: 462.8 kB / 494.1 MB, free: 40.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/0.4798, allocations: 42.5 kB / 494.2 MB, free: 40.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007575/0.4874, allocations: 11.13 MB / 0.4935 GB, free: 28.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.4874, allocations: 4.031 kB / 0.4935 GB, free: 28.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004157/0.4916, allocations: 3.136 MB / 0.4965 GB, free: 25.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008951/0.4925, allocations: 426.5 kB / 0.4969 GB, free: 25.13 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000483/0.493, allocations: 35.98 kB / 0.497 GB, free: 25.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/0.494, allocations: 71.89 kB / 0.497 GB, free: 25.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002333/0.4943, allocations: 93.17 kB / 0.4971 GB, free: 24.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.677e-05/0.4944, allocations: 46.06 kB / 0.4972 GB, free: 24.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001971/0.4964, allocations: 1.315 MB / 0.4985 GB, free: 23.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4964, allocations: 4 kB / 0.4985 GB, free: 23.58 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002631/0.499, allocations: 0.5885 MB / 0.499 GB, free: 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.001231/0.5002, allocations: 472.2 kB / 0.4995 GB, free: 22.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003039/0.5033, allocations: 2.167 MB / 0.5016 GB, free: 20.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.5033, allocations: 4 kB / 0.5016 GB, free: 20.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001983/0.5053, allocations: 1.573 MB / 0.5031 GB, free: 18.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002314/0.5076, allocations: 0.5482 MB / 0.5037 GB, free: 18.15 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009156/0.5168, allocations: 5.779 MB / 0.5093 GB, free: 12.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002837/0.5197, allocations: 2.348 MB / 0.5116 GB, free: 9.977 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001387/0.5211, allocations: 409 kB / 0.512 GB, free: 9.574 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004254/0.5215, allocations: 135.4 kB / 0.5121 GB, free: 9.441 MB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.5215, allocations: 0 / 0.5121 GB, free: 9.441 MB / 382.1 MB Notification: Performance of Templates: time 0.05112/0.5727, allocations: 30.53 MB / 0.5419 GB, free: 10.88 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)