Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.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.Transformers.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer") translateModel(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000937/0.0009369, allocations: 85.94 kB / 15.06 MB, free: 1.09 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.001246/0.001247, allocations: 168.7 kB / 15.95 MB, free: 204 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.781/1.781, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0006732/0.0006733, allocations: 15.98 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.2889, allocations: 47.6 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.01193/0.3008, allocations: 11.36 MB / 337.9 MB, free: 8.113 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00923/0.3101, allocations: 4.018 MB / 341.9 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002757/0.3129, allocations: 63.62 kB / 341.9 MB, free: 4.023 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003045/0.316, allocations: 0.7689 MB / 342.7 MB, free: 3.25 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004421/0.3204, allocations: 1.026 MB / 343.7 MB, free: 2.219 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001727/0.3222, allocations: 331.6 kB / 344.1 MB, free: 1.895 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.008466/0.3307, allocations: 4.821 MB / 348.9 MB, free: 13.05 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007096/0.3379, allocations: 2.522 MB / 351.4 MB, free: 10.48 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004962/0.3429, allocations: 1.568 MB / 353 MB, free: 8.906 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004885/0.3478, allocations: 2.101 MB / 355.1 MB, free: 6.797 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001679/0.3495, allocations: 244 kB / 355.3 MB, free: 6.559 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002045/0.3516, allocations: 315.9 kB / 355.6 MB, free: 6.25 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002041/0.3537, allocations: 1.149 MB / 356.8 MB, free: 5.098 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001892/0.3556, allocations: 0.8394 MB / 357.6 MB, free: 4.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00682/0.3624, allocations: 5.995 MB / 363.6 MB, free: 14.24 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.922e-06/0.3624, allocations: 0 / 363.6 MB, free: 14.24 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3624, allocations: 0 / 363.6 MB, free: 14.24 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001848/0.3626, allocations: 3.938 kB / 363.6 MB, free: 14.23 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.008619/0.3713, allocations: 3.997 MB / 367.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.3713, allocations: 8.031 kB / 367.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001737/0.3731, allocations: 0.4947 MB / 368.1 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004245/0.3773, allocations: 2.303 MB / 370.4 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002121/0.3775, allocations: 267 kB / 370.7 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005453/0.3781, allocations: 347.9 kB / 371 MB, free: 6.711 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008905/0.387, allocations: 5.009 MB / 376 MB, free: 1.637 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.162e-05/0.3871, allocations: 11.89 kB / 376 MB, free: 1.625 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003224/0.3874, allocations: 147.9 kB / 376.2 MB, free: 1.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000184/0.3876, allocations: 179.1 kB / 376.3 MB, free: 1.305 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007708/0.3954, allocations: 4.291 MB / 380.6 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02743/0.4228, allocations: 14.99 MB / 395.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004669/0.4275, allocations: 4.2 MB / 399.8 MB, free: 9.188 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003085/0.4306, allocations: 2.006 MB / 401.8 MB, free: 7.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002873/0.431, allocations: 135 kB / 402 MB, free: 7.031 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.102e-05/0.431, allocations: 56.56 kB / 402 MB, free: 6.965 MB / 334.1 MB Notification: Performance of pre-optimization done (n=198): time 4.158e-06/0.431, allocations: 4 kB / 402 MB, free: 6.961 MB / 334.1 MB Notification: Performance of matching and sorting (n=218): time 0.0216/0.4526, allocations: 10.09 MB / 412.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.633e-05/0.4527, allocations: 77.36 kB / 412.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004/0.4567, allocations: 2.49 MB / 414.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003614/0.4571, allocations: 61.7 kB / 414.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001148/0.4583, allocations: 1.611 MB / 416.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006856/0.459, allocations: 0.7472 MB / 417.1 MB, free: 7.711 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/0.4591, allocations: 44 kB / 417.1 MB, free: 7.668 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.4593, allocations: 394.6 kB / 417.5 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002097/0.4614, allocations: 1.305 MB / 418.8 MB, free: 5.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002553/0.464, allocations: 1.79 MB / 420.6 MB, free: 3.984 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002638/0.4666, allocations: 1.56 MB / 422.2 MB, free: 2.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/0.4667, allocations: 4 kB / 422.2 MB, free: 2.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007853/0.4745, allocations: 4.075 MB / 426.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.062e-05/0.4746, allocations: 12 kB / 426.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.668e-05/0.4746, allocations: 15.98 kB / 426.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002796/0.4774, allocations: 0.8831 MB / 427.2 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002131/0.4796, allocations: 0.5266 MB / 427.7 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01079/0.4904, allocations: 8.742 MB / 436.4 MB, free: 3.727 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002485/0.4929, allocations: 127.9 kB / 436.6 MB, free: 3.602 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002822/0.4932, allocations: 83.98 kB / 436.6 MB, free: 3.52 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 25,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002488/0.4957, allocations: 1.215 MB / 437.9 MB, free: 2.293 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007785/0.4965, allocations: 268.7 kB / 438.1 MB, free: 2.027 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006888/0.5034, allocations: 3.738 MB / 441.9 MB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.042e-05/0.5035, allocations: 20 kB / 441.9 MB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.657e-05/0.5035, allocations: 8 kB / 441.9 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.185e-05/0.5035, allocations: 11.95 kB / 441.9 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01379/0.5173, allocations: 8.107 MB / 450 MB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.417e-06/0.5174, allocations: 0 / 450 MB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001565/0.5189, allocations: 383.6 kB / 450.4 MB, free: 5.621 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002846/0.5218, allocations: 0.929 MB / 451.3 MB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001685/0.522, allocations: 55.98 kB / 451.4 MB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2114/0.7334, allocations: 10.18 MB / 461.5 MB, free: 105.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/0.7334, allocations: 3.625 kB / 461.5 MB, free: 105.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008771/0.7422, allocations: 5.534 MB / 467.1 MB, free: 103 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001407/0.7436, allocations: 0.6369 MB / 467.7 MB, free: 102.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003361/0.744, allocations: 55.47 kB / 467.8 MB, free: 102.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/0.7451, allocations: 130 kB / 467.9 MB, free: 102.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004965/0.7456, allocations: 181.5 kB / 468.1 MB, free: 102.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001419/0.7458, allocations: 57.77 kB / 468.1 MB, free: 102.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002389/0.7482, allocations: 1.71 MB / 469.8 MB, free: 102 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7482, allocations: 0 / 469.8 MB, free: 102 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002164/0.7504, allocations: 0.8014 MB / 470.6 MB, free: 101.9 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004426/0.7508, allocations: 210.5 kB / 470.8 MB, free: 101.8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004668/0.7555, allocations: 3.896 MB / 474.7 MB, free: 100.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.7555, allocations: 0 / 474.7 MB, free: 100.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002834/0.7584, allocations: 2.487 MB / 477.2 MB, free: 98.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002931/0.7613, allocations: 0.7606 MB / 478 MB, free: 97.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00944/0.7708, allocations: 9.103 MB / 487.1 MB, free: 88.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001803/0.7726, allocations: 2.772 MB / 489.9 MB, free: 85.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00188/0.7745, allocations: 0.6827 MB / 490.5 MB, free: 84.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004924/0.775, allocations: 179.4 kB / 490.7 MB, free: 84.67 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.775, allocations: 0 / 490.7 MB, free: 84.67 MB / 382.1 MB Notification: Performance of Templates: time 0.06044/0.8354, allocations: 42.71 MB / 0.5209 GB, free: 41.91 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe 2>&1)