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.001282/0.001282, allocations: 108 kB / 15.61 MB, free: 152 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.001486/0.001486, allocations: 192.9 kB / 16.53 MB, free: 6.664 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.362/1.362, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.001328/0.001328, allocations: 56.2 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2085/0.2098, allocations: 46.63 MB / 325.3 MB, free: 1.98 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01429/0.2241, allocations: 12.83 MB / 338.1 MB, free: 7.164 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008743/0.2329, allocations: 4.281 MB / 342.4 MB, free: 2.871 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002383/0.2354, allocations: 67.75 kB / 342.5 MB, free: 2.805 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003037/0.2385, allocations: 0.9668 MB / 343.5 MB, free: 1.832 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005271/0.2437, allocations: 1.281 MB / 344.7 MB, free: 0.543 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002404/0.2462, allocations: 0.8496 MB / 345.6 MB, free: 15.69 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005475/0.2517, allocations: 4.043 MB / 349.6 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004728/0.2564, allocations: 3.188 MB / 352.8 MB, free: 8.367 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002881/0.2593, allocations: 1.869 MB / 354.7 MB, free: 6.492 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003237/0.2626, allocations: 2.106 MB / 356.8 MB, free: 4.379 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001301/0.2639, allocations: 0.5117 MB / 357.3 MB, free: 3.867 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00217/0.2661, allocations: 0.7146 MB / 358 MB, free: 3.152 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001628/0.2677, allocations: 1.141 MB / 359.2 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004363/0.2721, allocations: 2.132 MB / 361.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008603/0.2807, allocations: 6.691 MB / 368 MB, free: 9.156 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.696e-06/0.2808, allocations: 0 / 368 MB, free: 9.156 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2808, allocations: 0 / 368 MB, free: 9.156 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001988/0.281, allocations: 0 / 368 MB, free: 9.156 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.01331/0.2943, allocations: 4.398 MB / 372.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.2944, allocations: 12.03 kB / 372.4 MB, free: 4.672 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004159/0.2986, allocations: 0.8202 MB / 373.2 MB, free: 3.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004067/0.3026, allocations: 2.295 MB / 375.5 MB, free: 1.496 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001782/0.3029, allocations: 242.6 kB / 375.7 MB, free: 1.258 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000496/0.3034, allocations: 312 kB / 376.1 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007931/0.3113, allocations: 4.254 MB / 380.3 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.427e-05/0.3114, allocations: 4 kB / 380.3 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002907/0.3117, allocations: 128 kB / 380.4 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001414/0.3118, allocations: 150.2 kB / 380.6 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006375/0.3182, allocations: 3.647 MB / 384.2 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02046/0.3387, allocations: 13.5 MB / 397.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006385/0.3451, allocations: 6.869 MB / 404.6 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002316/0.3475, allocations: 1.422 MB / 406 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005976/0.3535, allocations: 3.639 MB / 409.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/0.3536, allocations: 47.56 kB / 409.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=124): time 3.066e-06/0.3536, allocations: 0 / 409.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=144): time 0.01348/0.3671, allocations: 6.63 MB / 416.3 MB, free: 7.055 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.268e-05/0.3671, allocations: 64.72 kB / 416.4 MB, free: 6.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002707/0.3698, allocations: 1.859 MB / 418.3 MB, free: 5.121 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001517/0.37, allocations: 57.7 kB / 418.3 MB, free: 5.059 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009943/0.371, allocations: 1.419 MB / 419.7 MB, free: 3.621 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004014/0.3714, allocations: 0.4929 MB / 420.2 MB, free: 3.121 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004725/0.3719, allocations: 303.3 kB / 420.5 MB, free: 2.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.372, allocations: 301.1 kB / 420.8 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/0.3732, allocations: 0.7613 MB / 421.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001419/0.3746, allocations: 1.224 MB / 422.8 MB, free: 356 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002744/0.3774, allocations: 2.1 MB / 424.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.086e-06/0.3774, allocations: 8 kB / 424.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004387/0.3818, allocations: 2.663 MB / 427.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.709e-05/0.3818, allocations: 15.94 kB / 427.6 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.53e-05/0.3819, allocations: 15.94 kB / 427.6 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001301/0.3832, allocations: 0.4976 MB / 428.1 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/0.3847, allocations: 391.4 kB / 428.5 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008157/0.3928, allocations: 6.938 MB / 435.4 MB, free: 3.223 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/0.3943, allocations: 79.8 kB / 435.5 MB, free: 3.145 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001265/0.3945, allocations: 71.98 kB / 435.6 MB, free: 3.074 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.00161/0.3961, allocations: 1.052 MB / 436.6 MB, free: 2.012 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000332/0.3964, allocations: 189.7 kB / 436.8 MB, free: 1.824 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004085/0.4005, allocations: 2.5 MB / 439.3 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/0.4005, allocations: 19.94 kB / 439.3 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.4006, allocations: 4 kB / 439.3 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.4006, allocations: 7.969 kB / 439.3 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008038/0.4086, allocations: 5.536 MB / 444.9 MB, free: 9.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.869e-06/0.4087, allocations: 4 kB / 444.9 MB, free: 9.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009864/0.4097, allocations: 215.7 kB / 445.1 MB, free: 9.344 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001241/0.4109, allocations: 0.5038 MB / 445.6 MB, free: 8.824 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.634e-05/0.411, allocations: 35.98 kB / 445.6 MB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1585/0.5695, allocations: 11.41 MB / 457 MB, free: 107.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.5696, allocations: 2.094 kB / 457 MB, free: 107.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005038/0.5746, allocations: 3.566 MB / 460.6 MB, free: 106.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007491/0.5754, allocations: 466.8 kB / 461.1 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002437/0.5757, allocations: 28.94 kB / 461.1 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008933/0.5766, allocations: 71.66 kB / 461.2 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002493/0.5768, allocations: 108.8 kB / 461.3 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.553e-05/0.5769, allocations: 42.84 kB / 461.3 MB, free: 106.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001657/0.5786, allocations: 1.283 MB / 462.6 MB, free: 105.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.5786, allocations: 3.406 kB / 462.6 MB, free: 105.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00183/0.5804, allocations: 0.5901 MB / 463.2 MB, free: 105.5 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.0003468/0.5808, allocations: 155.3 kB / 463.3 MB, free: 105.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004969/0.5857, allocations: 2.837 MB / 466.2 MB, free: 104.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5858, allocations: 0 / 466.2 MB, free: 104.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001917/0.5877, allocations: 1.722 MB / 467.9 MB, free: 103.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002007/0.5897, allocations: 0.5166 MB / 468.4 MB, free: 103.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007608/0.5973, allocations: 6 MB / 474.4 MB, free: 99.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001438/0.5988, allocations: 2.365 MB / 476.8 MB, free: 97.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00114/0.5999, allocations: 424.1 kB / 477.2 MB, free: 97.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002941/0.6002, allocations: 126.7 kB / 477.3 MB, free: 97.05 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.6002, allocations: 0 / 477.3 MB, free: 97.05 MB / 382.1 MB Notification: Performance of Templates: time 0.04049/0.6407, allocations: 30.99 MB / 0.4964 GB, free: 66.1 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (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)