Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001488/0.001488, allocations: 88.83 kB / 16.3 MB, free: 5.996 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.001554/0.001555, allocations: 187.2 kB / 17.2 MB, free: 5.91 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.515/1.515, allocations: 205.4 MB / 223.4 MB, free: 5.559 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.0004743/0.0004743, allocations: 8 kB / 280.1 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.2984, allocations: 47.58 MB / 327.7 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.01455/0.313, allocations: 10.36 MB / 338.1 MB, free: 9.145 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01205/0.3251, allocations: 4.149 MB / 342.2 MB, free: 4.988 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004504/0.3297, allocations: 63.62 kB / 342.3 MB, free: 4.926 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00395/0.3337, allocations: 0.8008 MB / 343.1 MB, free: 4.121 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006791/0.3405, allocations: 0.993 MB / 344.1 MB, free: 3.125 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001909/0.3425, allocations: 323.6 kB / 344.4 MB, free: 2.809 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.006787/0.3493, allocations: 2.967 MB / 347.3 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004181/0.3535, allocations: 2.514 MB / 349.9 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003633/0.3572, allocations: 1.444 MB / 351.3 MB, free: 11.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004497/0.3617, allocations: 1.813 MB / 353.1 MB, free: 10 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007957/0.3625, allocations: 240 kB / 353.4 MB, free: 9.766 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001794/0.3643, allocations: 307.9 kB / 353.7 MB, free: 9.465 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001527/0.3659, allocations: 1.083 MB / 354.7 MB, free: 8.379 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00209/0.368, allocations: 0.8394 MB / 355.6 MB, free: 7.531 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008249/0.3762, allocations: 5.952 MB / 361.5 MB, free: 1.562 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3763, allocations: 0 / 361.5 MB, free: 1.562 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.008e-06/0.3763, allocations: 0 / 361.5 MB, free: 1.562 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0003115/0.3766, allocations: 0 / 361.5 MB, free: 1.562 MB / 286.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.01351/0.3901, allocations: 3.978 MB / 365.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.111e-05/0.3902, allocations: 8.031 kB / 365.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003779/0.394, allocations: 0.4947 MB / 366 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00705/0.4011, allocations: 2.31 MB / 368.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002844/0.4014, allocations: 267 kB / 368.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001218/0.4027, allocations: 359.9 kB / 368.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0123/0.415, allocations: 4.97 MB / 373.9 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.114e-05/0.4151, allocations: 8 kB / 373.9 MB, free: 4.996 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003641/0.4155, allocations: 148 kB / 374.1 MB, free: 4.852 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002199/0.4157, allocations: 183 kB / 374.2 MB, free: 4.672 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01016/0.4259, allocations: 4.287 MB / 378.5 MB, free: 388 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03367/0.4596, allocations: 14.95 MB / 393.5 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005556/0.4652, allocations: 4.196 MB / 397.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000365/0.4657, allocations: 131.1 kB / 397.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.905e-05/0.4657, allocations: 56.55 kB / 397.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=198): time 6.743e-06/0.4657, allocations: 3.984 kB / 397.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=218): time 0.02478/0.4905, allocations: 10.33 MB / 408.2 MB, free: 1.918 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.396e-05/0.4907, allocations: 81.36 kB / 408.3 MB, free: 1.828 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004339/0.495, allocations: 2.447 MB / 410.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005077/0.4956, allocations: 61.7 kB / 410.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001365/0.4969, allocations: 1.619 MB / 412.4 MB, free: 13.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008754/0.4978, allocations: 0.7316 MB / 413.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/0.498, allocations: 44 kB / 413.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002121/0.4982, allocations: 398.6 kB / 413.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002169/0.5004, allocations: 1.324 MB / 414.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002544/0.5029, allocations: 1.794 MB / 416.7 MB, free: 9.156 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002542/0.5055, allocations: 1.575 MB / 418.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-05/0.5055, allocations: 4 kB / 418.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.008169/0.5137, allocations: 4.103 MB / 422.4 MB, free: 3.449 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.82e-05/0.5138, allocations: 8.031 kB / 422.4 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.43e-05/0.5139, allocations: 20 kB / 422.4 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002994/0.5169, allocations: 0.8788 MB / 423.3 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002485/0.5194, allocations: 0.5265 MB / 423.8 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01191/0.5313, allocations: 8.942 MB / 432.7 MB, free: 8.656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003538/0.5349, allocations: 123.9 kB / 432.9 MB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006823/0.5356, allocations: 80 kB / 432.9 MB, free: 8.457 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.004439/0.5401, allocations: 1.223 MB / 434.2 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001833/0.542, allocations: 268.7 kB / 434.4 MB, free: 6.957 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008417/0.5504, allocations: 3.762 MB / 438.2 MB, free: 3.168 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.529e-05/0.5505, allocations: 20 kB / 438.2 MB, free: 3.148 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-05/0.5505, allocations: 8 kB / 438.2 MB, free: 3.141 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.225e-05/0.5506, allocations: 11.95 kB / 438.2 MB, free: 3.129 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01663/0.5672, allocations: 8.083 MB / 446.3 MB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.199e-05/0.5673, allocations: 4 kB / 446.3 MB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001618/0.5689, allocations: 391.8 kB / 446.7 MB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003101/0.572, allocations: 0.9291 MB / 447.6 MB, free: 9.594 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002174/0.5723, allocations: 55.97 kB / 447.7 MB, free: 9.539 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2592/0.8315, allocations: 10.42 MB / 458.1 MB, free: 107.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.869e-06/0.8315, allocations: 7.516 kB / 458.1 MB, free: 107.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01025/0.8418, allocations: 5.801 MB / 463.9 MB, free: 105.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00254/0.8444, allocations: 0.6327 MB / 464.5 MB, free: 105.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005242/0.8449, allocations: 50.7 kB / 464.6 MB, free: 105.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001445/0.8464, allocations: 131.6 kB / 464.7 MB, free: 105.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004961/0.8469, allocations: 177.2 kB / 464.9 MB, free: 105.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001573/0.847, allocations: 61.64 kB / 464.9 MB, free: 105.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002661/0.8497, allocations: 1.681 MB / 466.6 MB, free: 104.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8497, allocations: 0 / 466.6 MB, free: 104.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002484/0.8522, allocations: 0.7973 MB / 467.4 MB, free: 104.6 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.0005197/0.8527, allocations: 210.7 kB / 467.6 MB, free: 104.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00531/0.8581, allocations: 3.923 MB / 471.5 MB, free: 102.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.275e-06/0.8581, allocations: 0 / 471.5 MB, free: 102.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003226/0.8613, allocations: 2.512 MB / 474.1 MB, free: 101.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00309/0.8644, allocations: 0.7181 MB / 474.8 MB, free: 101 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01194/0.8764, allocations: 9.115 MB / 483.9 MB, free: 92.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002051/0.8785, allocations: 2.843 MB / 486.7 MB, free: 89.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002303/0.8808, allocations: 0.6826 MB / 487.4 MB, free: 88.81 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004763/0.8813, allocations: 179.4 kB / 487.6 MB, free: 88.64 MB / 382.1 MB Notification: Performance of SimCode: time 1.533e-06/0.8813, allocations: 0 / 487.6 MB, free: 88.64 MB / 382.1 MB Notification: Performance of Templates: time 0.0652/0.9465, allocations: 42.27 MB / 0.5174 GB, free: 46.33 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe 2>&1) Environment - environmentSimulation: