Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.00105/0.00105, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.33/1.33, allocations: 205.1 MB / 222.4 MB, free: 4.578 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.001148/0.001148, allocations: 55.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2081/0.2093, allocations: 46.63 MB / 325.3 MB, free: 1.887 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01351/0.2228, allocations: 12.82 MB / 338.1 MB, free: 7.074 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008407/0.2313, allocations: 4.281 MB / 342.4 MB, free: 2.781 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002111/0.2335, allocations: 67.69 kB / 342.5 MB, free: 2.715 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002471/0.2359, allocations: 0.963 MB / 343.4 MB, free: 1.746 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003726/0.2397, allocations: 1.293 MB / 344.7 MB, free: 456 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001885/0.2416, allocations: 0.8496 MB / 345.6 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004666/0.2463, allocations: 4.032 MB / 349.6 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003614/0.2499, allocations: 3.196 MB / 352.8 MB, free: 8.273 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002666/0.2526, allocations: 1.869 MB / 354.7 MB, free: 6.398 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003179/0.2558, allocations: 2.109 MB / 356.8 MB, free: 4.281 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006842/0.2565, allocations: 0.5117 MB / 357.3 MB, free: 3.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001437/0.2579, allocations: 0.7146 MB / 358 MB, free: 3.055 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009213/0.2589, allocations: 1.141 MB / 359.2 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002164/0.261, allocations: 2.124 MB / 361.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005811/0.2669, allocations: 6.699 MB / 368 MB, free: 9.059 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.2669, allocations: 0 / 368 MB, free: 9.059 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2669, allocations: 0 / 368 MB, free: 9.059 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001088/0.267, allocations: 0 / 368 MB, free: 9.059 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.009832/0.2768, allocations: 4.398 MB / 372.4 MB, free: 4.586 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.2769, allocations: 11.89 kB / 372.4 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004108/0.281, allocations: 0.8202 MB / 373.2 MB, free: 3.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003742/0.2848, allocations: 2.299 MB / 375.5 MB, free: 1.395 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001786/0.285, allocations: 242.6 kB / 375.8 MB, free: 1.156 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004537/0.2854, allocations: 316 kB / 376.1 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006604/0.292, allocations: 4.246 MB / 380.3 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.042e-05/0.2921, allocations: 7.938 kB / 380.3 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002894/0.2924, allocations: 128 kB / 380.4 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001383/0.2926, allocations: 146.2 kB / 380.6 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005726/0.2983, allocations: 3.651 MB / 384.2 MB, free: 8.609 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01815/0.3165, allocations: 13.5 MB / 397.7 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006094/0.3226, allocations: 6.857 MB / 404.6 MB, free: 2.996 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002122/0.3247, allocations: 1.422 MB / 406 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005303/0.3301, allocations: 3.647 MB / 409.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.3301, allocations: 51.56 kB / 409.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=124): time 2.354e-06/0.3301, allocations: 0 / 409.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=144): time 0.01183/0.3419, allocations: 6.626 MB / 416.3 MB, free: 6.957 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.342, allocations: 64.72 kB / 416.4 MB, free: 6.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002291/0.3443, allocations: 1.863 MB / 418.3 MB, free: 5.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.539e-05/0.3444, allocations: 53.7 kB / 418.3 MB, free: 4.961 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008612/0.3453, allocations: 1.419 MB / 419.7 MB, free: 3.523 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003245/0.3456, allocations: 0.4929 MB / 420.2 MB, free: 3.023 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004216/0.346, allocations: 299.3 kB / 420.5 MB, free: 2.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.066e-05/0.3461, allocations: 305.1 kB / 420.8 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0011/0.3472, allocations: 0.7613 MB / 421.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001388/0.3486, allocations: 1.224 MB / 422.8 MB, free: 256 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002846/0.3515, allocations: 2.104 MB / 424.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.3515, allocations: 4 kB / 424.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004446/0.356, allocations: 2.663 MB / 427.6 MB, free: 11.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.388e-05/0.356, allocations: 15.94 kB / 427.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.939e-05/0.356, allocations: 12 kB / 427.6 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001333/0.3574, allocations: 0.4939 MB / 428.1 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001381/0.3588, allocations: 395.4 kB / 428.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008089/0.3669, allocations: 6.942 MB / 435.4 MB, free: 3.125 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00141/0.3683, allocations: 79.8 kB / 435.5 MB, free: 3.047 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/0.3684, allocations: 68 kB / 435.6 MB, free: 2.98 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (180): * Single equations (assignments): 178 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (7,31,61.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001598/0.37, allocations: 1.056 MB / 436.6 MB, free: 1.914 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003532/0.3704, allocations: 189.7 kB / 436.8 MB, free: 1.727 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003959/0.3743, allocations: 2.5 MB / 439.3 MB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-05/0.3744, allocations: 19.92 kB / 439.3 MB, free: 15.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.3744, allocations: 12 kB / 439.3 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.248e-05/0.3744, allocations: 3.984 kB / 439.3 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007789/0.3822, allocations: 5.54 MB / 444.9 MB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.3822, allocations: 0 / 444.9 MB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009543/0.3832, allocations: 215.9 kB / 445.1 MB, free: 9.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001215/0.3844, allocations: 0.4959 MB / 445.6 MB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.76e-05/0.3845, allocations: 39.98 kB / 445.6 MB, free: 8.691 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1486/0.5331, allocations: 11.4 MB / 457 MB, free: 107.6 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.5332, allocations: 2.031 kB / 457 MB, free: 107.6 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005049/0.5382, allocations: 3.571 MB / 460.6 MB, free: 106.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007872/0.539, allocations: 456.1 kB / 461.1 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002416/0.5393, allocations: 30.75 kB / 461.1 MB, free: 106 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009063/0.5402, allocations: 70.12 kB / 461.2 MB, free: 106 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002651/0.5405, allocations: 116.5 kB / 461.3 MB, free: 106 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.192e-05/0.5406, allocations: 42.34 kB / 461.3 MB, free: 106 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001666/0.5422, allocations: 1.286 MB / 462.6 MB, free: 105.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5423, allocations: 0 / 462.6 MB, free: 105.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001769/0.544, allocations: 0.5829 MB / 463.2 MB, free: 105.4 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 (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 {(2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002602/0.5443, allocations: 161.2 kB / 463.3 MB, free: 105.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005133/0.5494, allocations: 2.834 MB / 466.2 MB, free: 104.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.5495, allocations: 4 kB / 466.2 MB, free: 104.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001993/0.5515, allocations: 1.722 MB / 467.9 MB, free: 103.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002123/0.5536, allocations: 0.515 MB / 468.4 MB, free: 103 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008114/0.5617, allocations: 5.993 MB / 474.4 MB, free: 99.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001446/0.5632, allocations: 2.375 MB / 476.8 MB, free: 97.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001286/0.5645, allocations: 415.5 kB / 477.2 MB, free: 97.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003013/0.5648, allocations: 125.6 kB / 477.3 MB, free: 97.04 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.5648, allocations: 4 kB / 477.3 MB, free: 97.04 MB / 382.1 MB Notification: Performance of Templates: time 0.04058/0.6054, allocations: 30.99 MB / 0.4964 GB, free: 66.1 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1)