Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009809/0.0009809, allocations: 99.94 kB / 15.05 MB, free: 1.105 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.001026/0.001026, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.339/1.339, allocations: 205.4 MB / 222.1 MB, free: 5.668 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.0004226/0.0004227, allocations: 18.81 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2166, allocations: 47.58 MB / 326.5 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.0119/0.2285, allocations: 10.31 MB / 336.8 MB, free: 9.188 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008116/0.2367, allocations: 4.082 MB / 340.8 MB, free: 5.098 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002115/0.2388, allocations: 59.75 kB / 340.9 MB, free: 5.039 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002653/0.2415, allocations: 0.7502 MB / 341.7 MB, free: 4.285 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004009/0.2455, allocations: 1.114 MB / 342.8 MB, free: 3.168 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002386/0.2479, allocations: 0.5924 MB / 343.4 MB, free: 2.574 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.006493/0.2544, allocations: 2.749 MB / 346.1 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005041/0.2595, allocations: 2.177 MB / 348.3 MB, free: 13.6 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00378/0.2634, allocations: 1.242 MB / 349.5 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003735/0.2671, allocations: 1.482 MB / 351 MB, free: 10.87 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001199/0.2684, allocations: 208 kB / 351.2 MB, free: 10.66 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001981/0.2704, allocations: 375.8 kB / 351.6 MB, free: 10.3 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001636/0.2721, allocations: 0.732 MB / 352.3 MB, free: 9.562 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001664/0.2737, allocations: 0.7421 MB / 353.1 MB, free: 8.812 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006588/0.2804, allocations: 5.481 MB / 358.5 MB, free: 3.316 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2804, allocations: 0 / 358.5 MB, free: 3.316 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.065e-06/0.2804, allocations: 0 / 358.5 MB, free: 3.316 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0002189/0.2806, allocations: 0 / 358.5 MB, free: 3.316 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01067/0.2913, allocations: 3.747 MB / 362.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.2914, allocations: 8.031 kB / 362.3 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004922/0.2963, allocations: 0.8115 MB / 363.1 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005086/0.3014, allocations: 2.214 MB / 365.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002465/0.3017, allocations: 238.2 kB / 365.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009119/0.3026, allocations: 315.8 kB / 365.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008891/0.3115, allocations: 4.215 MB / 370.1 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.367e-05/0.3116, allocations: 11.91 kB / 370.1 MB, free: 7.582 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000456/0.3121, allocations: 131.9 kB / 370.2 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001536/0.3123, allocations: 146.2 kB / 370.4 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00688/0.3191, allocations: 3.644 MB / 374 MB, free: 3.656 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02369/0.3429, allocations: 13.52 MB / 387.5 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006415/0.3493, allocations: 6.865 MB / 394.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005782/0.3551, allocations: 3.231 MB / 397.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.867e-05/0.3552, allocations: 43.88 kB / 397.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of pre-optimization done (n=130): time 3.456e-06/0.3552, allocations: 0 / 397.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=150): time 0.01289/0.3681, allocations: 6.76 MB / 404.4 MB, free: 3.699 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.909e-05/0.3682, allocations: 72.66 kB / 404.5 MB, free: 3.613 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002559/0.3707, allocations: 1.796 MB / 406.3 MB, free: 1.816 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001001/0.3709, allocations: 53.7 kB / 406.3 MB, free: 1.758 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009271/0.3718, allocations: 1.408 MB / 407.7 MB, free: 340 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003886/0.3722, allocations: 0.5085 MB / 408.3 MB, free: 15.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.535e-05/0.3723, allocations: 36 kB / 408.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.3725, allocations: 373.7 kB / 408.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001243/0.3737, allocations: 0.7847 MB / 409.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001543/0.3753, allocations: 1.222 MB / 410.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/0.3768, allocations: 0.998 MB / 411.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/0.3768, allocations: 4 kB / 411.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.00443/0.3812, allocations: 2.702 MB / 414.4 MB, free: 9.492 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.3813, allocations: 8 kB / 414.4 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/0.3813, allocations: 20.28 kB / 414.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001299/0.3826, allocations: 0.4936 MB / 414.9 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001512/0.3841, allocations: 399.4 kB / 415.3 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008346/0.3925, allocations: 6.535 MB / 421.8 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001751/0.3943, allocations: 84.2 kB / 421.9 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001266/0.3944, allocations: 71.98 kB / 422 MB, free: 1.617 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,56.2%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002261/0.3967, allocations: 1.048 MB / 423 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000319/0.397, allocations: 201.5 kB / 423.2 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004367/0.4014, allocations: 2.566 MB / 425.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.279e-05/0.4014, allocations: 20 kB / 425.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.512e-05/0.4014, allocations: 11.98 kB / 425.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/0.4015, allocations: 3.984 kB / 425.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008554/0.41, allocations: 5.59 MB / 431.4 MB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/0.4101, allocations: 0 / 431.4 MB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.4111, allocations: 235.7 kB / 431.6 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001169/0.4123, allocations: 500 kB / 432.1 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.324e-05/0.4124, allocations: 39.98 kB / 432.2 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01019/0.4226, allocations: 10.56 MB / 442.7 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.4226, allocations: 3.938 kB / 442.7 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005767/0.4284, allocations: 3.752 MB / 446.5 MB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/0.4294, allocations: 462.5 kB / 446.9 MB, free: 7.602 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002507/0.4297, allocations: 36 kB / 447 MB, free: 7.566 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000866/0.4306, allocations: 71.91 kB / 447 MB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002668/0.4309, allocations: 121.1 kB / 447.2 MB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.589e-05/0.4309, allocations: 39.98 kB / 447.2 MB, free: 7.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001794/0.4327, allocations: 1.239 MB / 448.4 MB, free: 6.109 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4328, allocations: 0 / 448.4 MB, free: 6.109 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001918/0.4347, allocations: 0.5898 MB / 449 MB, free: 5.52 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002961/0.435, allocations: 155.2 kB / 449.2 MB, free: 5.355 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003835/0.4388, allocations: 2.446 MB / 451.6 MB, free: 2.883 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.4388, allocations: 4.188 kB / 451.6 MB, free: 2.879 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002491/0.4413, allocations: 1.767 MB / 453.4 MB, free: 1.051 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001792/0.4431, allocations: 494.7 kB / 453.9 MB, free: 0.5664 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1634/0.6066, allocations: 7.155 MB / 461 MB, free: 106.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001814/0.6084, allocations: 2.436 MB / 463.5 MB, free: 106.1 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001389/0.6098, allocations: 418 kB / 463.9 MB, free: 106 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003111/0.6102, allocations: 125.4 kB / 464 MB, free: 106 MB / 382.1 MB Notification: Performance of SimCode: time 1.563e-06/0.6102, allocations: 0 / 464 MB, free: 106 MB / 382.1 MB Notification: Performance of Templates: time 0.04001/0.6502, allocations: 28.3 MB / 492.3 MB, free: 82.67 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1) Environment - environmentSimulation: