Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001462/0.001462, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.01358/0.01358, allocations: 169 kB / 16.26 MB, free: 6.652 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.632/1.632, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0004921/0.0004922, allocations: 12 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/0.3073, allocations: 47.58 MB / 327 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.01769/0.3251, allocations: 12.11 MB / 339.1 MB, free: 7.223 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01097/0.3361, allocations: 4.161 MB / 343.3 MB, free: 3.051 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003477/0.3396, allocations: 59.69 kB / 343.4 MB, free: 2.992 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003272/0.3429, allocations: 0.8509 MB / 344.2 MB, free: 2.137 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005672/0.3486, allocations: 1.072 MB / 345.3 MB, free: 1.059 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002163/0.3508, allocations: 479.4 kB / 345.8 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.008313/0.3591, allocations: 5.351 MB / 351.1 MB, free: 11.21 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00506/0.3642, allocations: 2.946 MB / 354.1 MB, free: 8.203 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004722/0.369, allocations: 1.584 MB / 355.6 MB, free: 6.617 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004336/0.3733, allocations: 2.186 MB / 357.8 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001348/0.3747, allocations: 248 kB / 358.1 MB, free: 4.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001878/0.3766, allocations: 351.8 kB / 358.4 MB, free: 3.836 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00146/0.378, allocations: 1.145 MB / 359.6 MB, free: 2.688 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003145/0.3812, allocations: 2.096 MB / 361.6 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006872/0.3881, allocations: 6.929 MB / 368.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.3881, allocations: 0 / 368.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3881, allocations: 0 / 368.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001666/0.3883, allocations: 0 / 368.6 MB, free: 9.621 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.008769/0.3971, allocations: 3.955 MB / 372.5 MB, free: 5.602 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.3971, allocations: 12.03 kB / 372.5 MB, free: 5.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001543/0.3987, allocations: 0.4995 MB / 373 MB, free: 5.086 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00391/0.4026, allocations: 2.384 MB / 375.4 MB, free: 2.652 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002006/0.4028, allocations: 267 kB / 375.7 MB, free: 2.391 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000582/0.4034, allocations: 347.9 kB / 376 MB, free: 2.051 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008982/0.4124, allocations: 5.036 MB / 381.1 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.958e-05/0.4125, allocations: 7.984 kB / 381.1 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003399/0.4129, allocations: 144 kB / 381.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001846/0.4131, allocations: 179.1 kB / 381.4 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007739/0.4208, allocations: 4.318 MB / 385.7 MB, free: 8.301 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03152/0.4523, allocations: 15 MB / 400.7 MB, free: 8.977 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00547/0.4579, allocations: 4.215 MB / 404.9 MB, free: 4.457 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003608/0.4615, allocations: 2.002 MB / 406.9 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002986/0.4619, allocations: 139.1 kB / 407.1 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.483e-05/0.462, allocations: 56.56 kB / 407.1 MB, free: 2.234 MB / 334.1 MB Notification: Performance of pre-optimization done (n=198): time 4.668e-06/0.462, allocations: 0 / 407.1 MB, free: 2.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=218): time 0.02068/0.4827, allocations: 10.13 MB / 417.2 MB, free: 7.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.216e-05/0.4828, allocations: 73.41 kB / 417.3 MB, free: 7.914 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003798/0.4866, allocations: 2.514 MB / 419.8 MB, free: 5.379 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002863/0.4869, allocations: 61.7 kB / 419.9 MB, free: 5.312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001082/0.488, allocations: 1.615 MB / 421.5 MB, free: 3.676 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006636/0.4886, allocations: 0.7316 MB / 422.2 MB, free: 2.934 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002649/0.4889, allocations: 206.2 kB / 422.4 MB, free: 2.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.692e-05/0.489, allocations: 305.1 kB / 422.7 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001938/0.4909, allocations: 1.316 MB / 424 MB, free: 1.105 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002193/0.4931, allocations: 1.79 MB / 425.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004474/0.4976, allocations: 3.243 MB / 429.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.225e-05/0.4977, allocations: 7.938 kB / 429.1 MB, free: 11.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007067/0.5047, allocations: 4.095 MB / 433.2 MB, free: 7.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.5048, allocations: 8 kB / 433.2 MB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.388e-05/0.5048, allocations: 16 kB / 433.2 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002876/0.5077, allocations: 0.8792 MB / 434.1 MB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002368/0.5101, allocations: 0.5304 MB / 434.6 MB, free: 6.121 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01061/0.5207, allocations: 8.756 MB / 443.4 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002534/0.5233, allocations: 127.9 kB / 443.5 MB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002406/0.5235, allocations: 80 kB / 443.6 MB, free: 12.76 MB / 382.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 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * 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 (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(3,25,77.8%), (2,12,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002428/0.526, allocations: 1.212 MB / 444.8 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007078/0.5267, allocations: 280.7 kB / 445.1 MB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006609/0.5333, allocations: 3.738 MB / 448.8 MB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.159e-05/0.5333, allocations: 23.98 kB / 448.8 MB, free: 7.465 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-05/0.5334, allocations: 11.94 kB / 448.8 MB, free: 7.453 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-05/0.5334, allocations: 7.969 kB / 448.8 MB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2427/0.7761, allocations: 8.118 MB / 457 MB, free: 108.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.451e-05/0.7762, allocations: 4.781 kB / 457 MB, free: 108.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002106/0.7783, allocations: 388.6 kB / 457.3 MB, free: 108.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00338/0.7817, allocations: 0.9232 MB / 458.3 MB, free: 108.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003644/0.7821, allocations: 62.31 kB / 458.3 MB, free: 108.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01063/0.7927, allocations: 10.2 MB / 468.5 MB, free: 101.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.69e-06/0.7928, allocations: 3.812 kB / 468.5 MB, free: 101.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01007/0.8028, allocations: 5.556 MB / 474.1 MB, free: 99.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001991/0.8049, allocations: 0.6335 MB / 474.7 MB, free: 99.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004443/0.8054, allocations: 50.8 kB / 474.8 MB, free: 99.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001456/0.8069, allocations: 131.6 kB / 474.9 MB, free: 99.33 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004899/0.8074, allocations: 179.5 kB / 475.1 MB, free: 99.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001264/0.8075, allocations: 55.39 kB / 475.1 MB, free: 99.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002557/0.8101, allocations: 1.735 MB / 476.9 MB, free: 98.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8101, allocations: 0 / 476.9 MB, free: 98.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002843/0.8129, allocations: 0.7973 MB / 477.7 MB, free: 98.52 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 (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(2,12,100.0%), (1,1,100.0%), (3,25,88.9%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005922/0.8135, allocations: 241.6 kB / 477.9 MB, free: 98.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005419/0.819, allocations: 3.907 MB / 481.8 MB, free: 94.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/0.819, allocations: 4 kB / 481.8 MB, free: 94.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003512/0.8225, allocations: 2.486 MB / 484.3 MB, free: 92.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00527/0.8278, allocations: 0.7452 MB / 485 MB, free: 91.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01392/0.8418, allocations: 9.521 MB / 494.6 MB, free: 81.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002207/0.844, allocations: 2.773 MB / 497.3 MB, free: 78.97 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002451/0.8465, allocations: 0.6749 MB / 498 MB, free: 78.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000554/0.8471, allocations: 179.4 kB / 498.2 MB, free: 78.12 MB / 382.1 MB Notification: Performance of SimCode: time 1.653e-06/0.8471, allocations: 4 kB / 498.2 MB, free: 78.12 MB / 382.1 MB Notification: Performance of Templates: time 0.07589/0.923, allocations: 43.86 MB / 0.5293 GB, free: 34.2 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe 2>&1)