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.0008347/0.0008348, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004789/0.004789, allocations: 169.4 kB / 16.26 MB, free: 6.332 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.385/1.385, allocations: 205.4 MB / 222.5 MB, free: 5.555 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.0004426/0.0004426, allocations: 12 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2318, allocations: 47.59 MB / 327 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.0135/0.2453, allocations: 12.57 MB / 339.6 MB, free: 6.758 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00966/0.255, allocations: 4.637 MB / 344.2 MB, free: 2.109 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0032/0.2583, allocations: 71.69 kB / 344.3 MB, free: 2.039 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003837/0.2621, allocations: 0.9642 MB / 345.3 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005394/0.2676, allocations: 1.224 MB / 346.5 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002827/0.2704, allocations: 0.8927 MB / 347.4 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006239/0.2767, allocations: 4.316 MB / 351.7 MB, free: 10.61 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004326/0.281, allocations: 2.643 MB / 354.4 MB, free: 7.898 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002275/0.2833, allocations: 1.33 MB / 355.7 MB, free: 6.562 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003326/0.2867, allocations: 1.762 MB / 357.4 MB, free: 4.793 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001077/0.2878, allocations: 208 kB / 357.7 MB, free: 4.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001964/0.2898, allocations: 463.7 kB / 358.1 MB, free: 4.137 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001277/0.291, allocations: 0.7782 MB / 358.9 MB, free: 3.355 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002941/0.294, allocations: 1.778 MB / 360.7 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006594/0.3006, allocations: 6.357 MB / 367 MB, free: 11.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3007, allocations: 0 / 367 MB, free: 11.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3007, allocations: 0 / 367 MB, free: 11.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001573/0.3008, allocations: 0 / 367 MB, free: 11.18 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.01004/0.3109, allocations: 3.793 MB / 370.8 MB, free: 7.316 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.3109, allocations: 8.031 kB / 370.8 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004721/0.3157, allocations: 0.8241 MB / 371.6 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004251/0.3199, allocations: 2.26 MB / 373.9 MB, free: 4.164 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001816/0.3201, allocations: 238.4 kB / 374.1 MB, free: 3.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000601/0.3208, allocations: 327.9 kB / 374.5 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007812/0.3286, allocations: 4.28 MB / 378.7 MB, free: 15.28 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.931e-05/0.3287, allocations: 4 kB / 378.7 MB, free: 15.28 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003285/0.329, allocations: 128 kB / 378.9 MB, free: 15.15 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001527/0.3292, allocations: 166.4 kB / 379 MB, free: 14.99 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006536/0.3357, allocations: 3.621 MB / 382.6 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02267/0.3584, allocations: 13.47 MB / 396.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007043/0.3655, allocations: 6.966 MB / 403.1 MB, free: 5.684 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002247/0.3678, allocations: 1.39 MB / 404.5 MB, free: 4.293 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006438/0.3743, allocations: 3.848 MB / 408.3 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001277/0.3756, allocations: 0.8532 MB / 409.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=131): time 2.625e-06/0.3756, allocations: 3.938 kB / 409.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=139): time 0.01243/0.388, allocations: 6.524 MB / 415.7 MB, free: 8.727 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/0.3882, allocations: 222.9 kB / 415.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002716/0.3909, allocations: 1.911 MB / 417.8 MB, free: 6.551 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.865e-05/0.391, allocations: 49.7 kB / 417.9 MB, free: 6.496 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00124/0.3922, allocations: 1.482 MB / 419.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004228/0.3927, allocations: 481 kB / 419.8 MB, free: 4.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000203/0.3929, allocations: 137.6 kB / 420 MB, free: 4.379 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.393, allocations: 305.1 kB / 420.3 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/0.3941, allocations: 0.6637 MB / 420.9 MB, free: 3.418 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001418/0.3955, allocations: 1.218 MB / 422.2 MB, free: 1.969 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00248/0.398, allocations: 1.944 MB / 424.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-06/0.3981, allocations: 4 kB / 424.1 MB, free: 15.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.003825/0.4019, allocations: 2.432 MB / 426.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.4019, allocations: 12.03 kB / 426.5 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.018e-05/0.402, allocations: 16 kB / 426.6 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007276/0.4027, allocations: 283.2 kB / 426.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001371/0.4041, allocations: 387.4 kB / 427.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005681/0.4098, allocations: 5.867 MB / 433.1 MB, free: 6.383 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001448/0.4112, allocations: 87.95 kB / 433.2 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001208/0.4114, allocations: 75.98 kB / 433.2 MB, free: 6.223 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.00182/0.4132, allocations: 1.036 MB / 434.3 MB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003008/0.4135, allocations: 201.5 kB / 434.5 MB, free: 4.977 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004/0.4175, allocations: 2.254 MB / 436.7 MB, free: 2.652 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.385e-05/0.4175, allocations: 12 kB / 436.7 MB, free: 2.641 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/0.4176, allocations: 12 kB / 436.7 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.629e-05/0.4176, allocations: 7.969 kB / 436.8 MB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008006/0.4256, allocations: 5.106 MB / 441.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/0.4256, allocations: 8 kB / 441.9 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007691/0.4264, allocations: 179.8 kB / 442 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001182/0.4276, allocations: 464 kB / 442.5 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.507e-05/0.4277, allocations: 35.98 kB / 442.5 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009734/0.4374, allocations: 10.2 MB / 452.7 MB, free: 1.836 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.4375, allocations: 4.031 kB / 452.7 MB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1784/0.6159, allocations: 3.131 MB / 455.9 MB, free: 107.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001179/0.6171, allocations: 438.6 kB / 456.3 MB, free: 107.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000581/0.6177, allocations: 40.58 kB / 456.3 MB, free: 107.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001216/0.6189, allocations: 63.2 kB / 456.4 MB, free: 107.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003215/0.6193, allocations: 108.4 kB / 456.5 MB, free: 107.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/0.6194, allocations: 43.05 kB / 456.5 MB, free: 107.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002394/0.6218, allocations: 1.316 MB / 457.9 MB, free: 107.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6218, allocations: 1.625 kB / 457.9 MB, free: 107.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002401/0.6242, allocations: 0.5773 MB / 458.4 MB, free: 107.6 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.00112/0.6254, allocations: 474.9 kB / 458.9 MB, free: 107.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003097/0.6285, allocations: 2.179 MB / 461.1 MB, free: 106.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.6285, allocations: 0 / 461.1 MB, free: 106.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001912/0.6304, allocations: 1.58 MB / 462.7 MB, free: 105.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00273/0.6331, allocations: 0.5116 MB / 463.2 MB, free: 105.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008835/0.642, allocations: 7.35 MB / 470.5 MB, free: 101 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001878/0.6439, allocations: 2.357 MB / 472.9 MB, free: 99.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00142/0.6453, allocations: 412.5 kB / 473.3 MB, free: 99.81 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003177/0.6457, allocations: 134 kB / 473.4 MB, free: 99.8 MB / 382.1 MB Notification: Performance of SimCode: time 9.31e-07/0.6457, allocations: 0 / 473.4 MB, free: 99.8 MB / 382.1 MB Notification: Performance of Templates: time 0.04083/0.6865, allocations: 28.57 MB / 0.4902 GB, free: 72.61 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)