Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses") translateModel(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01136/0.01136, allocations: 100.2 kB / 15.73 MB, free: 6.043 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.001786/0.001786, allocations: 184.9 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.082/2.082, allocations: 205.1 MB / 222.6 MB, free: 4.508 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.001212/0.001212, allocations: 54.56 kB / 326.6 MB, free: 14.3 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1076, allocations: 46.63 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.0111/0.1188, allocations: 9.607 MB / 382.8 MB, free: 7.645 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00801/0.1268, allocations: 3.475 MB / 386.3 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002083/0.1289, allocations: 39.81 kB / 386.3 MB, free: 4.113 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002227/0.1312, allocations: 0.6715 MB / 387 MB, free: 3.438 MB / 318.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.00338/0.1346, allocations: 0.8271 MB / 387.8 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001382/0.136, allocations: 447.3 kB / 388.3 MB, free: 2.168 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003754/0.1398, allocations: 2.67 MB / 390.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002357/0.1422, allocations: 1.818 MB / 392.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002103/0.1443, allocations: 1.183 MB / 393.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002319/0.1466, allocations: 1.495 MB / 395.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005252/0.1472, allocations: 304 kB / 395.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001253/0.1484, allocations: 0.562 MB / 396.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001088/0.1495, allocations: 1.021 MB / 397.3 MB, free: 9.047 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002113/0.1517, allocations: 1.489 MB / 398.8 MB, free: 7.551 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005242/0.1569, allocations: 4.279 MB / 403.1 MB, free: 3.258 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1569, allocations: 4 kB / 403.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1569, allocations: 0 / 403.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.182e-05/0.157, allocations: 0 / 403.1 MB, free: 3.254 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.00668/0.1637, allocations: 3.157 MB / 406.2 MB, free: 28 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.1638, allocations: 11.89 kB / 406.3 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008372/0.1646, allocations: 329.4 kB / 406.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002805/0.1674, allocations: 1.607 MB / 408.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001252/0.1676, allocations: 152 kB / 408.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003228/0.1679, allocations: 203.9 kB / 408.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004645/0.1726, allocations: 2.698 MB / 411.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.741e-05/0.1727, allocations: 7.891 kB / 411.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001932/0.1729, allocations: 84 kB / 411.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001232/0.173, allocations: 91.94 kB / 411.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004113/0.1771, allocations: 2.28 MB / 413.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01482/0.1919, allocations: 8.138 MB / 421.8 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003086/0.1951, allocations: 1.634 MB / 423.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001993/0.1971, allocations: 1.108 MB / 424.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002532/0.1974, allocations: 127.1 kB / 424.7 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.123e-05/0.1974, allocations: 47.5 kB / 424.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 4.128e-06/0.1974, allocations: 0 / 424.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.01318/0.2106, allocations: 6.205 MB / 430.9 MB, free: 6.781 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.203e-05/0.2107, allocations: 64.72 kB / 431 MB, free: 6.707 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003207/0.2139, allocations: 2.156 MB / 433.2 MB, free: 4.504 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000201/0.2142, allocations: 49.69 kB / 433.2 MB, free: 4.449 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008431/0.215, allocations: 1.104 MB / 434.3 MB, free: 3.332 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004365/0.2155, allocations: 457.3 kB / 434.8 MB, free: 2.879 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004077/0.2159, allocations: 251.4 kB / 435 MB, free: 2.629 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000209/0.2161, allocations: 357.9 kB / 435.4 MB, free: 2.273 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001301/0.2174, allocations: 0.7574 MB / 436.1 MB, free: 1.516 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001509/0.2189, allocations: 1.013 MB / 437.1 MB, free: 420 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003008/0.2219, allocations: 1.869 MB / 439 MB, free: 14.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.222, allocations: 0 / 439 MB, free: 14.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005642/0.2276, allocations: 2.757 MB / 441.8 MB, free: 11.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.204e-05/0.2277, allocations: 8 kB / 441.8 MB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.919e-05/0.2277, allocations: 8 kB / 441.8 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002129/0.2298, allocations: 0.793 MB / 442.6 MB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001114/0.231, allocations: 267.6 kB / 442.8 MB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01188/0.2429, allocations: 9.584 MB / 452.4 MB, free: 0.7305 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001617/0.2445, allocations: 92.08 kB / 452.5 MB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001371/0.2447, allocations: 51.98 kB / 452.6 MB, free: 0.5898 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (126): * Single equations (assignments): 122 * Array equations: 2 * 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,6,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.2964/0.5411, allocations: 0.7318 MB / 453.3 MB, free: 69.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009266/0.5421, allocations: 205.5 kB / 453.5 MB, free: 69.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007065/0.5491, allocations: 2.48 MB / 456 MB, free: 69 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-05/0.5492, allocations: 15.47 kB / 456 MB, free: 69 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.619e-05/0.5493, allocations: 7.406 kB / 456 MB, free: 69 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.798e-05/0.5493, allocations: 6.094 kB / 456 MB, free: 69 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01241/0.5617, allocations: 4.949 MB / 460.9 MB, free: 67.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-05/0.5618, allocations: 3.25 kB / 460.9 MB, free: 67.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00116/0.563, allocations: 211.7 kB / 461.2 MB, free: 67.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001981/0.565, allocations: 0.6539 MB / 461.8 MB, free: 67.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001637/0.5652, allocations: 35.2 kB / 461.8 MB, free: 67.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01044/0.5756, allocations: 8.7 MB / 470.5 MB, free: 61.26 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/0.5757, allocations: 6.125 kB / 470.5 MB, free: 61.26 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007125/0.5828, allocations: 3.529 MB / 474.1 MB, free: 59.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001599/0.5845, allocations: 443.1 kB / 474.5 MB, free: 59.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000476/0.585, allocations: 31.02 kB / 474.5 MB, free: 59.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001208/0.5862, allocations: 90.67 kB / 474.6 MB, free: 59.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003991/0.5866, allocations: 100.5 kB / 474.7 MB, free: 59.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001286/0.5867, allocations: 43.61 kB / 474.8 MB, free: 59.63 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002967/0.5897, allocations: 1.517 MB / 476.3 MB, free: 58.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5897, allocations: 0 / 476.3 MB, free: 58.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003618/0.5934, allocations: 0.5181 MB / 476.8 MB, free: 58.8 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * 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 (97): * Single equations (assignments): 91 * Array equations: 2 * 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 {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001677/0.5951, allocations: 473.3 kB / 477.3 MB, free: 58.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004655/0.5998, allocations: 2.388 MB / 479.7 MB, free: 57.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.28e-05/0.5998, allocations: 0 / 479.7 MB, free: 57.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002687/0.6025, allocations: 1.59 MB / 481.2 MB, free: 55.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002916/0.6055, allocations: 461.2 kB / 481.7 MB, free: 55.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/0.6159, allocations: 5.119 MB / 486.8 MB, free: 50.26 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001773/0.6178, allocations: 1.951 MB / 488.8 MB, free: 48.28 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001452/0.6192, allocations: 387.7 kB / 489.1 MB, free: 47.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000378/0.6196, allocations: 135.4 kB / 489.3 MB, free: 47.76 MB / 382.1 MB Notification: Performance of SimCode: time 1.503e-06/0.6197, allocations: 0 / 489.3 MB, free: 47.76 MB / 382.1 MB Notification: Performance of Templates: time 0.05687/0.6765, allocations: 30.56 MB / 0.5077 GB, free: 17.18 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe 2>&1)