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.002166/0.002166, 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.002658/0.002658, allocations: 198.7 kB / 16.54 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.531/1.531, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.001451/0.001451, allocations: 59.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3805/0.3819, allocations: 46.63 MB / 325.3 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.01776/0.3998, allocations: 12.83 MB / 338.1 MB, free: 7.039 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0107/0.4105, allocations: 4.25 MB / 342.4 MB, free: 2.777 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003561/0.4142, allocations: 71.62 kB / 342.5 MB, free: 2.707 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003908/0.4181, allocations: 0.9587 MB / 343.4 MB, free: 1.742 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005798/0.4239, allocations: 1.18 MB / 344.6 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002483/0.4264, allocations: 0.5188 MB / 345.1 MB, free: 36 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.007739/0.4342, allocations: 4.657 MB / 349.8 MB, free: 11.35 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00777/0.442, allocations: 3.598 MB / 353.4 MB, free: 7.688 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005892/0.4479, allocations: 2.108 MB / 355.5 MB, free: 5.582 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005228/0.4532, allocations: 2.565 MB / 358.1 MB, free: 3.008 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002345/0.4556, allocations: 0.5508 MB / 358.6 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003666/0.4592, allocations: 0.6405 MB / 359.2 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002934/0.4622, allocations: 1.516 MB / 360.8 MB, free: 304 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006188/0.4684, allocations: 2.485 MB / 363.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0115/0.4799, allocations: 7.353 MB / 370.6 MB, free: 6.426 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.48, allocations: 0 / 370.6 MB, free: 6.426 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.48, allocations: 0 / 370.6 MB, free: 6.426 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002765/0.4803, allocations: 4 kB / 370.6 MB, free: 6.422 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.01619/0.4965, allocations: 4.687 MB / 375.3 MB, free: 1.668 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.416e-05/0.4966, allocations: 12.03 kB / 375.3 MB, free: 1.656 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002888/0.4995, allocations: 0.4957 MB / 375.8 MB, free: 1.156 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006827/0.5063, allocations: 2.376 MB / 378.2 MB, free: 14.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003969/0.5068, allocations: 270.9 kB / 378.4 MB, free: 14.46 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00214/0.5089, allocations: 355.9 kB / 378.8 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01675/0.5257, allocations: 5.025 MB / 383.8 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001918/0.5259, allocations: 7.906 kB / 383.8 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001227/0.5272, allocations: 147.9 kB / 384 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002492/0.5274, allocations: 191 kB / 384.1 MB, free: 8.684 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0103/0.5377, allocations: 4.287 MB / 388.4 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03763/0.5754, allocations: 14.9 MB / 403.3 MB, free: 5.164 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00649/0.5819, allocations: 4.191 MB / 407.5 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004425/0.5864, allocations: 1.999 MB / 409.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004594/0.5869, allocations: 127.1 kB / 409.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.733e-05/0.587, allocations: 60.5 kB / 409.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=198): time 7.444e-06/0.587, allocations: 0 / 409.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=218): time 0.02438/0.6114, allocations: 10.03 MB / 419.7 MB, free: 4.324 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.6115, allocations: 73.41 kB / 419.8 MB, free: 4.242 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005425/0.617, allocations: 2.51 MB / 422.3 MB, free: 1.711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005489/0.6175, allocations: 65.7 kB / 422.4 MB, free: 1.641 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001498/0.6191, allocations: 1.615 MB / 424 MB, free: 4 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001147/0.6202, allocations: 0.7316 MB / 424.7 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001197/0.6214, allocations: 416.3 kB / 425.1 MB, free: 14.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.6216, allocations: 305.1 kB / 425.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002817/0.6244, allocations: 1.305 MB / 426.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003144/0.6276, allocations: 1.782 MB / 428.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005464/0.6331, allocations: 3.215 MB / 431.7 MB, free: 7.871 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.281e-05/0.6331, allocations: 7.938 kB / 431.7 MB, free: 7.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.009297/0.6424, allocations: 4.067 MB / 435.8 MB, free: 3.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.919e-05/0.6425, allocations: 12 kB / 435.8 MB, free: 3.758 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.825e-05/0.6426, allocations: 12 kB / 435.8 MB, free: 3.746 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002637/0.6452, allocations: 0.8363 MB / 436.7 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002384/0.6476, allocations: 0.5266 MB / 437.2 MB, free: 2.367 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01221/0.6598, allocations: 9.486 MB / 446.7 MB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002255/0.6621, allocations: 123.8 kB / 446.8 MB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002242/0.6624, allocations: 87.94 kB / 446.9 MB, free: 8.254 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.002144/0.6645, allocations: 1.211 MB / 448.1 MB, free: 7.031 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000678/0.6652, allocations: 280.6 kB / 448.4 MB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006443/0.6717, allocations: 3.715 MB / 452.1 MB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.027e-05/0.6717, allocations: 20 kB / 452.1 MB, free: 2.984 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.572e-05/0.6718, allocations: 8 kB / 452.1 MB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.176e-05/0.6718, allocations: 11.91 kB / 452.1 MB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.287/0.9588, allocations: 8.081 MB / 460.2 MB, free: 109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/0.9589, allocations: 3.094 kB / 460.2 MB, free: 109 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001712/0.9606, allocations: 392.1 kB / 460.6 MB, free: 109 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002673/0.9633, allocations: 0.8744 MB / 461.5 MB, free: 108.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001386/0.9634, allocations: 55.25 kB / 461.5 MB, free: 108.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01024/0.9737, allocations: 11.06 MB / 472.6 MB, free: 100.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.9737, allocations: 3.812 kB / 472.6 MB, free: 100.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007432/0.9812, allocations: 5.517 MB / 478.1 MB, free: 97.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001548/0.9827, allocations: 0.629 MB / 478.7 MB, free: 97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003986/0.9832, allocations: 51.98 kB / 478.8 MB, free: 96.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00141/0.9846, allocations: 115.9 kB / 478.9 MB, free: 96.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004137/0.985, allocations: 177.7 kB / 479.1 MB, free: 96.67 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001387/0.9851, allocations: 63.48 kB / 479.1 MB, free: 96.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002279/0.9874, allocations: 1.731 MB / 480.9 MB, free: 94.87 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.9874, allocations: 0 / 480.9 MB, free: 94.87 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002315/0.9898, allocations: 0.7994 MB / 481.7 MB, free: 94.07 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.0005295/0.9903, allocations: 232.6 kB / 481.9 MB, free: 93.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008845/0.9992, allocations: 5.708 MB / 487.6 MB, free: 88.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.615e-06/0.9992, allocations: 7.688 kB / 487.6 MB, free: 88.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003099/1.002, allocations: 2.482 MB / 490.1 MB, free: 85.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003329/1.006, allocations: 0.7863 MB / 490.9 MB, free: 84.81 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01023/1.016, allocations: 7.797 MB / 498.7 MB, free: 77.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001996/1.018, allocations: 2.773 MB / 0.4897 GB, free: 74.22 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002138/1.02, allocations: 0.6749 MB / 0.4903 GB, free: 73.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004871/1.021, allocations: 187.4 kB / 0.4905 GB, free: 73.36 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/1.021, allocations: 0 / 0.4905 GB, free: 73.36 MB / 382.1 MB Notification: Performance of Templates: time 0.121/1.142, allocations: 46.41 MB / 0.5358 GB, free: 26.92 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)